Skip to content

Commit

Permalink
Steam uses a different VID/PID for the Steam Virtual Gamepad on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jun 3, 2023
1 parent 5f00147 commit 6815e75
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/joystick/hidapi/SDL_hidapi_xbox360.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,11 @@ static SDL_bool HIDAPI_DriverXbox360_IsSupportedDevice(SDL_HIDAPI_Device *device
/* This is the chatpad or other input interface, not the Xbox 360 interface */
return SDL_FALSE;
}
#if defined(__MACOS__) || defined(__WIN32__)
if (vendor_id == USB_VENDOR_MICROSOFT && product_id == 0x028e && version == 1) {
#ifdef __MACOS__
if (vendor_id == USB_VENDOR_MICROSOFT && product_id == USB_PRODUCT_XBOX360_WIRED_CONTROLLER && version == 1) {
/* This is the Steam Virtual Gamepad, which isn't supported by this driver */
return SDL_FALSE;
}
#endif
#ifdef __MACOS__
/* Wired Xbox One controllers are handled by this driver, interfacing with
the 360Controller driver available from:
https://github.com/360Controller/360Controller/releases
Expand Down

0 comments on commit 6815e75

Please sign in to comment.