Skip to content

Commit bb33eb4

Browse files
committed
Fixed detecting the Steam Virtual Gamepad on macOS
1 parent a86f8de commit bb33eb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/joystick/SDL_gamecontroller.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2137,7 +2137,7 @@ SDL_bool SDL_ShouldIgnoreGameController(const char *name, SDL_JoystickGUID guid)
21372137
#if defined(__LINUX__)
21382138
bSteamVirtualGamepad = (vendor == USB_VENDOR_VALVE && product == USB_PRODUCT_STEAM_VIRTUAL_GAMEPAD);
21392139
#elif defined(__MACOSX__)
2140-
bSteamVirtualGamepad = (vendor == USB_VENDOR_MICROSOFT && product == USB_PRODUCT_XBOX360_WIRED_CONTROLLER && version == 1);
2140+
bSteamVirtualGamepad = (vendor == USB_VENDOR_MICROSOFT && product == USB_PRODUCT_XBOX360_WIRED_CONTROLLER && version == 0);
21412141
#elif defined(__WIN32__)
21422142
/* We can't tell on Windows, but Steam will block others in input hooks */
21432143
bSteamVirtualGamepad = SDL_TRUE;

0 commit comments

Comments
 (0)