Skip to content

Commit

Permalink
Ignore Xbox One S gamepads with older firmware in HIDAPI
Browse files Browse the repository at this point in the history
This older firmware had a different HID report style that we don't support.
  • Loading branch information
cgutman committed May 1, 2019
1 parent b1100ec commit 5cb14f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/joystick/hidapi/SDL_hidapi_xbox360.c
Expand Up @@ -255,6 +255,10 @@ HIDAPI_DriverXbox360_IsSupportedDevice(Uint16 vendor_id, Uint16 product_id, Uint
/* This is the Steam Virtual Gamepad, which isn't supported by this driver */
return SDL_FALSE;
}
if (vendor_id == 0x045e && product_id == 0x02e0) {
/* This is the old Bluetooth Xbox One S firmware, which isn't supported by this driver */
return SDL_FALSE;
}
return SDL_IsJoystickXbox360(vendor_id, product_id) || SDL_IsJoystickXboxOne(vendor_id, product_id);
#else
return SDL_IsJoystickXbox360(vendor_id, product_id);
Expand Down

0 comments on commit 5cb14f4

Please sign in to comment.