Skip to content

Commit dccd93b

Browse files
Commit tweaks
1 parent d2a4946 commit dccd93b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Assets/MixedRealityToolkit/_Core/Devices/MixedReality/WindowsMixedRealityDeviceManager.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public override IMixedRealityController[] GetActiveControllers()
3737

3838
#if UNITY_WSA
3939

40-
#region IMixedRealityDeviceManager Interface
40+
#region IMixedRealityDeviceManager Interface
4141

4242
/// <inheritdoc/>
4343
public override void Enable()
@@ -48,7 +48,7 @@ public override void Enable()
4848
InteractionManager.InteractionSourceReleased += InteractionManager_InteractionSourceReleased;
4949
InteractionManager.InteractionSourceLost += InteractionManager_InteractionSourceLost;
5050

51-
UnityEngine.XR.WSA.Input.InteractionSourceState[] states = InteractionManager.GetCurrentReading();
51+
InteractionSourceState[] states = InteractionManager.GetCurrentReading();
5252

5353
// NOTE: We update the source state data, in case an app wants to query it on source detected.
5454
for (var i = 0; i < states.Length; i++)
@@ -66,23 +66,23 @@ public override void Disable()
6666
InteractionManager.InteractionSourceReleased -= InteractionManager_InteractionSourceReleased;
6767
InteractionManager.InteractionSourceLost -= InteractionManager_InteractionSourceLost;
6868

69-
UnityEngine.XR.WSA.Input.InteractionSourceState[] states = InteractionManager.GetCurrentReading();
69+
InteractionSourceState[] states = InteractionManager.GetCurrentReading();
7070
for (var i = 0; i < states.Length; i++)
7171
{
7272
RemoveController(states[i]);
7373
}
7474
}
7575

76-
#endregion IMixedRealityDeviceManager Interface
76+
#endregion IMixedRealityDeviceManager Interface
7777

78-
#region Controller Utilities
78+
#region Controller Utilities
7979

8080
/// <summary>
8181
/// Retrieve the source controller from the Active Store, or create a new device and register it
8282
/// </summary>
8383
/// <param name="interactionSourceState">Source State provided by the SDK</param>
8484
/// <returns>New or Existing Controller Input Source</returns>
85-
private WindowsMixedRealityController GetOrAddController(UnityEngine.XR.WSA.Input.InteractionSourceState interactionSourceState, bool updateControllerData = true)
85+
private WindowsMixedRealityController GetOrAddController(InteractionSourceState interactionSourceState, bool updateControllerData = true)
8686
{
8787
//If a device is already registered with the ID provided, just return it.
8888
if (activeControllers.ContainsKey(interactionSourceState.source.id))
@@ -127,16 +127,16 @@ private WindowsMixedRealityController GetOrAddController(UnityEngine.XR.WSA.Inpu
127127
/// Remove the selected controller from the Active Store
128128
/// </summary>
129129
/// <param name="interactionSourceState">Source State provided by the SDK to remove</param>
130-
private void RemoveController(UnityEngine.XR.WSA.Input.InteractionSourceState interactionSourceState)
130+
private void RemoveController(InteractionSourceState interactionSourceState)
131131
{
132132
var controller = GetOrAddController(interactionSourceState, false);
133133
InputSystem?.RaiseSourceLost(controller?.InputSource, controller);
134134
activeControllers.Remove(interactionSourceState.source.id);
135135
}
136136

137-
#endregion Controller Utilities
137+
#endregion Controller Utilities
138138

139-
#region Unity InteractionManager Events
139+
#region Unity InteractionManager Events
140140

141141
/// <summary>
142142
/// SDK Interaction Source Detected Event handler
@@ -184,9 +184,9 @@ private void InteractionManager_InteractionSourceLost(InteractionSourceLostEvent
184184
RemoveController(args.state);
185185
}
186186

187-
#endregion Unity InteractionManager Events
187+
#endregion Unity InteractionManager Events
188188

189189
#endif // UNITY_WSA
190190

191191
}
192-
}
192+
}

0 commit comments

Comments
 (0)