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

This commit is contained in:
Sam Lantinga 2022-11-05 13:50:37 -07:00
parent a2d66b6a91
commit 7e11b09b3b
1 changed files with 0 additions and 6 deletions

View File

@ -334,12 +334,6 @@ HIDAPI_DriverXboxOne_IsEnabled(void)
static SDL_bool 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) 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__ #ifdef __MACOSX__
/* Wired Xbox One controllers are handled by the 360Controller driver */ /* Wired Xbox One controllers are handled by the 360Controller driver */
if (!SDL_IsJoystickBluetoothXboxOne(vendor_id, product_id)) { if (!SDL_IsJoystickBluetoothXboxOne(vendor_id, product_id)) {