Commit 7e11b09b3b0761e8d0234ee0f51081ff8dab8d57

Sam Lantinga 2022-11-05T13:50:37

The PowerA Xbox One Mini Wired Controller works with the HIDAPI driver now

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/src/joystick/hidapi/SDL_hidapi_xboxone.c b/src/joystick/hidapi/SDL_hidapi_xboxone.c
index ea72f27..d6a8640 100644
--- a/src/joystick/hidapi/SDL_hidapi_xboxone.c
+++ b/src/joystick/hidapi/SDL_hidapi_xboxone.c
@@ -334,12 +334,6 @@ HIDAPI_DriverXboxOne_IsEnabled(void)
 static SDL_bool
 HIDAPI_DriverXboxOne_IsSupportedDevice(SDL_HIDAPI_Device *device, const char *name, SDL_GameControllerType type, Uint16 vendor_id, Uint16 product_id, Uint16 version, int interface_number, int interface_class, int interface_subclass, int interface_protocol)
 {
-#ifdef __LINUX__
-    if (vendor_id == USB_VENDOR_POWERA && product_id == 0x541a) {
-        /* The PowerA Mini controller, model 1240245-01, blocks while writing feature reports */
-        return SDL_FALSE;
-    }
-#endif
 #ifdef __MACOSX__
     /* Wired Xbox One controllers are handled by the 360Controller driver */
     if (!SDL_IsJoystickBluetoothXboxOne(vendor_id, product_id)) {