Просмотр исходного кода

Detect the GameSir Super Nova in Xbox 360 mode

Sam Lantinga 15 часов назад
Родитель
Сommit
a95ce7e734

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

@@ -256,6 +256,7 @@ public class HIDDeviceManager {
             0x24c6, // PowerA
             0x2c22, // Qanba
             0x2dc8, // 8BitDo
+            0x3537, // GameSir
             0x37d7, // Flydigi
             0x9886, // ASTRO Gaming
         };

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

@@ -853,6 +853,7 @@ static int is_xbox360(unsigned short vendor_id, const struct libusb_interface_de
 		0x24c6, /* PowerA */
 		0x2c22, /* Qanba */
 		0x2dc8, /* 8BitDo */
+		0x3537, /* GameSir */
 		0x37d7, /* Flydigi */
 		0x9886, /* ASTRO Gaming */
 	};

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

@@ -288,6 +288,7 @@ static SDL_GamepadType SDL_GetJoystickGameControllerProtocol(const char *name, U
             0x24c6, // PowerA
             0x2c22, // Qanba
             0x2dc8, // 8BitDo
+            0x3537, // GameSir
             0x37d7, // Flydigi
             0x9886, // ASTRO Gaming
         };