Skip to content

Commit

Permalink
Don't try to use this driver with the Xbox One S in Bluetooth mode on…
Browse files Browse the repository at this point in the history
… Linux
  • Loading branch information
slouken committed Nov 17, 2019
1 parent 9ca5373 commit a9ac9e3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/joystick/hidapi/SDL_hidapi_xboxone.c
Expand Up @@ -133,6 +133,13 @@ typedef struct {
static SDL_bool
HIDAPI_DriverXboxOne_IsSupportedDevice(Uint16 vendor_id, Uint16 product_id, Uint16 version, int interface_number, const char *name)
{
#ifdef __LINUX__
/* Check to see if it's the Xbox One S in Bluetooth mode */
if (vendor_id == 0x045e && product_id == 0x02fd) {
/* We can't do rumble on this device, hid_write() fails, so don't try to open it here */
return SDL_FALSE;
}
#endif
return SDL_IsJoystickXboxOne(vendor_id, product_id);
}

Expand Down

0 comments on commit a9ac9e3

Please sign in to comment.