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

Add PID for red octane games, as they support sony detection

Sanjay Govind 1 день назад
Родитель
Сommit
205777210e
2 измененных файлов с 3 добавлено и 0 удалено
  1. 2 0
      src/joystick/hidapi/SDL_hidapijoystick.c
  2. 1 0
      src/joystick/usb_ids.h

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

@@ -216,6 +216,8 @@ bool HIDAPI_SupportsPlaystationDetection(Uint16 vendor, Uint16 product)
          *            https://github.com/libsdl-org/SDL/issues/6799
          */
         return false;
+    case USB_VENDOR_RED_OCTANE_GAMES:
+        return true;
     case USB_VENDOR_SHANWAN:
         return true;
     case USB_VENDOR_SHANWAN_ALT:

+ 1 - 0
src/joystick/usb_ids.h

@@ -54,6 +54,7 @@
 #define USB_VENDOR_QANBA        0x2c22
 #define USB_VENDOR_RAZER        0x1532
 #define USB_VENDOR_RED_OCTANE   0x1430
+#define USB_VENDOR_RED_OCTANE_GAMES   0x3958
 #define USB_VENDOR_SAITEK       0x06a3
 #define USB_VENDOR_SCEA         0x12ba
 #define USB_VENDOR_SHANWAN      0x2563