From 3d34750ced48dba6adb03ba88f04be27d313f047 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 9 Dec 2019 13:54:05 -0800 Subject: [PATCH] The PowerA Mini controller blocks while writing feature reports, so don't try to use the HIDAPI driver for it on Linux --- src/joystick/hidapi/SDL_hidapi_xboxone.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/joystick/hidapi/SDL_hidapi_xboxone.c b/src/joystick/hidapi/SDL_hidapi_xboxone.c index 536e1a0bc344e..230fe64471119 100644 --- a/src/joystick/hidapi/SDL_hidapi_xboxone.c +++ b/src/joystick/hidapi/SDL_hidapi_xboxone.c @@ -226,6 +226,10 @@ HIDAPI_DriverXboxOne_IsSupportedDevice(Uint16 vendor_id, Uint16 product_id, Uint /* We can't do rumble on this device, hid_write() fails, so don't try to open it here */ return SDL_FALSE; } + if (vendor_id == 0x24c6 && product_id == 0x541a) { + /* The PowerA Mini controller blocks while writing feature reports */ + return SDL_FALSE; + } #endif return (SDL_GetJoystickGameControllerType(vendor_id, product_id, name) == SDL_CONTROLLER_TYPE_XBOXONE); }