From 5cb14f4467408a9213bb8d8e201f07693cdc5665 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 30 Apr 2019 20:37:49 -0700 Subject: [PATCH] Ignore Xbox One S gamepads with older firmware in HIDAPI This older firmware had a different HID report style that we don't support. --- src/joystick/hidapi/SDL_hidapi_xbox360.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/joystick/hidapi/SDL_hidapi_xbox360.c b/src/joystick/hidapi/SDL_hidapi_xbox360.c index ad0a1922d..346b12d50 100644 --- a/src/joystick/hidapi/SDL_hidapi_xbox360.c +++ b/src/joystick/hidapi/SDL_hidapi_xbox360.c @@ -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);