Skip to content

Commit

Permalink
The PowerA Mini controller blocks while writing feature reports, so d…
Browse files Browse the repository at this point in the history
…on't try to use the HIDAPI driver for it on Linux
  • Loading branch information
slouken committed Dec 9, 2019
1 parent 3626506 commit 3d34750
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/joystick/hidapi/SDL_hidapi_xboxone.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit 3d34750

Please sign in to comment.