Skip to content

Commit 783560c

Browse files
Merge pull request #3790 from luis-valverde-ms/xbox_controller_fix
Fixed joystick name check to correctly recognize Xbox controllers
2 parents 4f8ccb2 + 95dbdb7 commit 783560c

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)