Skip to content

Commit

Permalink
Steam sets the device version of the Steam Virtual Gamepad to 0, for …
Browse files Browse the repository at this point in the history
…the best compatibility with old games
  • Loading branch information
slouken committed Jun 6, 2023
1 parent d032492 commit dc06116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/joystick/hidapi/SDL_hidapi_xbox360.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static SDL_bool HIDAPI_DriverXbox360_IsSupportedDevice(SDL_HIDAPI_Device *device
return SDL_FALSE;
}
#ifdef __MACOS__
if (vendor_id == USB_VENDOR_MICROSOFT && product_id == USB_PRODUCT_XBOX360_WIRED_CONTROLLER && version == 1) {
if (vendor_id == USB_VENDOR_MICROSOFT && product_id == USB_PRODUCT_XBOX360_WIRED_CONTROLLER && version == 0) {
/* This is the Steam Virtual Gamepad, which isn't supported by this driver */
return SDL_FALSE;
}
Expand Down

0 comments on commit dc06116

Please sign in to comment.