Skip to content

Commit 95dbdb7

Browse files
Fixed joystick name check to correctly recognize Xbox controllers
1 parent 39daa05 commit 95dbdb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/MixedRealityToolkit/Providers/UnityInput/UnityJoystickManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ protected virtual SupportedControllerType GetCurrentControllerType(string joysti
198198
return 0;
199199
}
200200

201-
if (joystickName.StartsWith("Xbox"))
201+
if (joystickName.Contains("Xbox"))
202202
{
203203
return SupportedControllerType.Xbox;
204204
}

0 commit comments

Comments
 (0)