The PowerA Mini controller blocks while writing feature reports, so don't try to use the HIDAPI driver for it on Linux
authorSam Lantinga <slouken@libsdl.org>
Mon, 09 Dec 2019 13:54:05 -0800
changeset 13323a8804daa1c3d
parent 13322 383f548aaa88
child 13324 b46a94bb2ab0
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
     1.1 --- a/src/joystick/hidapi/SDL_hidapi_xboxone.c	Mon Dec 09 13:54:03 2019 -0800
     1.2 +++ b/src/joystick/hidapi/SDL_hidapi_xboxone.c	Mon Dec 09 13:54:05 2019 -0800
     1.3 @@ -226,6 +226,10 @@
     1.4          /* We can't do rumble on this device, hid_write() fails, so don't try to open it here */
     1.5          return SDL_FALSE;
     1.6      }
     1.7 +    if (vendor_id == 0x24c6 && product_id == 0x541a) {
     1.8 +        /* The PowerA Mini controller blocks while writing feature reports */
     1.9 +        return SDL_FALSE;
    1.10 +    }
    1.11  #endif
    1.12      return (SDL_GetJoystickGameControllerType(vendor_id, product_id, name) == SDL_CONTROLLER_TYPE_XBOXONE);
    1.13  }