Skip to content

Commit

Permalink
Revert "Fixed detection of the Steam Virtual Gamepad on macOS"
Browse files Browse the repository at this point in the history
This reverts commit 5fcd705.

Steam has been updated to send a version of 1 to avoid conflicts with controllers that report a version of 0.
  • Loading branch information
slouken committed Jun 3, 2023
1 parent 0c862d9 commit 5f00147
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/joystick/hidapi/SDL_hidapi_xbox360.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ static SDL_bool HIDAPI_DriverXbox360_IsSupportedDevice(SDL_HIDAPI_Device *device
return SDL_FALSE;
}
#if defined(__MACOS__) || defined(__WIN32__)
if (vendor_id == USB_VENDOR_MICROSOFT && product_id == 0x028e &&
(version == 0 || version == 1)) {
if (vendor_id == USB_VENDOR_MICROSOFT && product_id == 0x028e && version == 1) {
/* This is the Steam Virtual Gamepad, which isn't supported by this driver */
return SDL_FALSE;
}
Expand Down

0 comments on commit 5f00147

Please sign in to comment.