Skip to content

Commit 2d01751

Browse files
committed
Update references to SupportedControllerType.None
1 parent 95e65a6 commit 2d01751

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Assets/MixedRealityToolkit.Providers/OpenVR/OpenVRDeviceManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ protected override SupportedControllerType GetCurrentControllerType(string joyst
118118
{
119119
if (string.IsNullOrEmpty(joystickName) || !joystickName.Contains("OpenVR"))
120120
{
121-
return SupportedControllerType.None;
121+
return 0;
122122
}
123123

124124
if (joystickName.Contains("Oculus Rift CV1"))

Assets/MixedRealityToolkit/Definitions/Devices/MixedRealityControllerMapping.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public SupportedControllerType SupportedControllerType
8282
return attr.SupportedControllerType;
8383
}
8484
}
85-
return SupportedControllerType.None;
85+
return 0;
8686
}
8787
}
8888

Assets/MixedRealityToolkit/Inspectors/ControllerPopupWindow.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public static void Show(MixedRealityControllerMapping controllerMapping, Seriali
210210
{
211211
new ControllerInputActionOption
212212
{
213-
Controller = SupportedControllerType.None,
213+
Controller = 0,
214214
Handedness = Handedness.None,
215215
InputLabelPositions = new[] {new Vector2(0, 0)},
216216
IsLabelFlipped = new []{false}
@@ -352,11 +352,11 @@ private void RenderInteractionList(SerializedProperty interactionList, bool useC
352352
controllerInputActionOptions.Controllers.Add(currentControllerOption);
353353
isMouseInRects = new bool[currentInteractionList.arraySize];
354354

355-
if (controllerInputActionOptions.Controllers.Any(option => option.Controller == SupportedControllerType.None))
355+
if (controllerInputActionOptions.Controllers.Any(option => option.Controller == 0))
356356
{
357357
controllerInputActionOptions.Controllers.Remove(
358358
controllerInputActionOptions.Controllers.Find(option =>
359-
option.Controller == SupportedControllerType.None));
359+
option.Controller == 0));
360360
}
361361

362362
File.WriteAllText($"{Application.dataPath}{EditorWindowOptionsPath}", JsonUtility.ToJson(controllerInputActionOptions));

Assets/MixedRealityToolkit/Providers/UnityInput/UnityJoystickManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ protected virtual SupportedControllerType GetCurrentControllerType(string joysti
180180
joystickName.Contains("OpenVR") ||
181181
joystickName.Contains("Spatial"))
182182
{
183-
return SupportedControllerType.None;
183+
return 0;
184184
}
185185

186186
if (joystickName.StartsWith("Xbox"))

0 commit comments

Comments
 (0)