mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-05-21 11:52:15 +00:00
Add 8BitDo to the list of Xbox 360 third party vendors
Allows detection of the 8BitDo Ultimate Wired Controller
This commit is contained in:
parent
fb0ce375f0
commit
a937b5c4ad
|
@ -251,6 +251,7 @@ public class HIDDeviceManager {
|
||||||
0x20d6, // PowerA
|
0x20d6, // PowerA
|
||||||
0x24c6, // PowerA
|
0x24c6, // PowerA
|
||||||
0x2c22, // Qanba
|
0x2c22, // Qanba
|
||||||
|
0x2dc8, // 8BitDo
|
||||||
};
|
};
|
||||||
|
|
||||||
if (usbInterface.getInterfaceClass() == UsbConstants.USB_CLASS_VENDOR_SPEC &&
|
if (usbInterface.getInterfaceClass() == UsbConstants.USB_CLASS_VENDOR_SPEC &&
|
||||||
|
@ -278,7 +279,7 @@ public class HIDDeviceManager {
|
||||||
0x1532, // Razer Wildcat
|
0x1532, // Razer Wildcat
|
||||||
0x20d6, // PowerA
|
0x20d6, // PowerA
|
||||||
0x24c6, // PowerA
|
0x24c6, // PowerA
|
||||||
0x2dc8, /* 8BitDo */
|
0x2dc8, // 8BitDo
|
||||||
0x2e24, // Hyperkin
|
0x2e24, // Hyperkin
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -688,6 +688,7 @@ static int is_xbox360(unsigned short vendor_id, const struct libusb_interface_de
|
||||||
0x20d6, /* PowerA */
|
0x20d6, /* PowerA */
|
||||||
0x24c6, /* PowerA */
|
0x24c6, /* PowerA */
|
||||||
0x2c22, /* Qanba */
|
0x2c22, /* Qanba */
|
||||||
|
0x2dc8, /* 8BitDo */
|
||||||
};
|
};
|
||||||
|
|
||||||
if (intf_desc->bInterfaceClass == LIBUSB_CLASS_VENDOR_SPEC &&
|
if (intf_desc->bInterfaceClass == LIBUSB_CLASS_VENDOR_SPEC &&
|
||||||
|
|
|
@ -170,6 +170,7 @@ SDL_GetJoystickGameControllerProtocol(const char *name, Uint16 vendor, Uint16 pr
|
||||||
0x20d6, /* PowerA */
|
0x20d6, /* PowerA */
|
||||||
0x24c6, /* PowerA */
|
0x24c6, /* PowerA */
|
||||||
0x2c22, /* Qanba */
|
0x2c22, /* Qanba */
|
||||||
|
0x2dc8, /* 8BitDo */
|
||||||
};
|
};
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
|
|
Loading…
Reference in a new issue