Преглед изворни кода

Added detection for Turtle Beach Xbox 360 controllers

Sam Lantinga пре 3 недеља
родитељ
комит
05a0cb5894

+ 1 - 0
android-project/app/src/main/java/org/libsdl/app/HIDDeviceManager.java

@@ -243,6 +243,7 @@ public class HIDDeviceManager {
             0x0e6f, // PDP
             0x0e6f, // PDP
             0x0f0d, // Hori
             0x0f0d, // Hori
             0x1038, // SteelSeries
             0x1038, // SteelSeries
+            0x10f5, // Turtle Beach
             0x11c9, // Nacon
             0x11c9, // Nacon
             0x1209, // Generic
             0x1209, // Generic
             0x12ab, // Unknown
             0x12ab, // Unknown

+ 1 - 0
src/hidapi/libusb/hid.c

@@ -956,6 +956,7 @@ static int is_xbox360(unsigned short vendor_id, const struct libusb_interface_de
 		0x0e6f, /* PDP */
 		0x0e6f, /* PDP */
 		0x0f0d, /* Hori */
 		0x0f0d, /* Hori */
 		0x1038, /* SteelSeries */
 		0x1038, /* SteelSeries */
+		0x10f5, /* Turtle Beach */
 		0x11c9, /* Nacon */
 		0x11c9, /* Nacon */
 		0x1209, /* Generic */
 		0x1209, /* Generic */
 		0x12ab, /* Unknown */
 		0x12ab, /* Unknown */

+ 1 - 0
src/joystick/hidapi/SDL_hidapijoystick.c

@@ -279,6 +279,7 @@ static SDL_GamepadType SDL_GetJoystickGameControllerProtocol(const char *name, U
             0x0e6f, // PDP
             0x0e6f, // PDP
             0x0f0d, // Hori
             0x0f0d, // Hori
             0x1038, // SteelSeries
             0x1038, // SteelSeries
+            0x10f5, // Turtle Beach
             0x11c9, // Nacon
             0x11c9, // Nacon
             0x1209, // Generic
             0x1209, // Generic
             0x12ab, // Unknown
             0x12ab, // Unknown