Add 8BitDo to the list of Xbox 360 third party vendors Allows detection of the 8BitDo Ultimate Wired Controller
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
diff --git a/android-project/app/src/main/java/org/libsdl/app/HIDDeviceManager.java b/android-project/app/src/main/java/org/libsdl/app/HIDDeviceManager.java
index cf3c926..e695a17 100644
--- a/android-project/app/src/main/java/org/libsdl/app/HIDDeviceManager.java
+++ b/android-project/app/src/main/java/org/libsdl/app/HIDDeviceManager.java
@@ -251,6 +251,7 @@ public class HIDDeviceManager {
0x20d6, // PowerA
0x24c6, // PowerA
0x2c22, // Qanba
+ 0x2dc8, // 8BitDo
};
if (usbInterface.getInterfaceClass() == UsbConstants.USB_CLASS_VENDOR_SPEC &&
@@ -278,7 +279,7 @@ public class HIDDeviceManager {
0x1532, // Razer Wildcat
0x20d6, // PowerA
0x24c6, // PowerA
- 0x2dc8, /* 8BitDo */
+ 0x2dc8, // 8BitDo
0x2e24, // Hyperkin
};
diff --git a/src/hidapi/libusb/hid.c b/src/hidapi/libusb/hid.c
index 9e2a435..abd5d00 100644
--- a/src/hidapi/libusb/hid.c
+++ b/src/hidapi/libusb/hid.c
@@ -688,6 +688,7 @@ static int is_xbox360(unsigned short vendor_id, const struct libusb_interface_de
0x20d6, /* PowerA */
0x24c6, /* PowerA */
0x2c22, /* Qanba */
+ 0x2dc8, /* 8BitDo */
};
if (intf_desc->bInterfaceClass == LIBUSB_CLASS_VENDOR_SPEC &&
diff --git a/src/joystick/hidapi/SDL_hidapijoystick.c b/src/joystick/hidapi/SDL_hidapijoystick.c
index ae3f2cc..94124b7 100644
--- a/src/joystick/hidapi/SDL_hidapijoystick.c
+++ b/src/joystick/hidapi/SDL_hidapijoystick.c
@@ -170,6 +170,7 @@ SDL_GetJoystickGameControllerProtocol(const char *name, Uint16 vendor, Uint16 pr
0x20d6, /* PowerA */
0x24c6, /* PowerA */
0x2c22, /* Qanba */
+ 0x2dc8, /* 8BitDo */
};
int i;