Commit 33619aa2e9749251b161f62e310611063754751b

Sam Lantinga 2022-09-23T16:38:15

Added support for the ZEROPLUS P4 Wired Gamepad to the HIDAPI driver

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/src/joystick/usb_ids.h b/src/joystick/usb_ids.h
index 301de64..7c006d1 100644
--- a/src/joystick/usb_ids.h
+++ b/src/joystick/usb_ids.h
@@ -46,6 +46,7 @@
 #define USB_VENDOR_SONY         0x054c
 #define USB_VENDOR_THRUSTMASTER 0x044f
 #define USB_VENDOR_VALVE        0x28de
+#define USB_VENDOR_ZEROPLUS     0x0c12
 
 #define SONY_THIRDPARTY_VENDOR(X)       \
     (X == USB_VENDOR_DRAGONRISE     ||  \
@@ -60,6 +61,7 @@
      X == USB_VENDOR_SHANWAN        ||  \
      X == USB_VENDOR_SHANWAN_ALT    ||  \
      X == USB_VENDOR_THRUSTMASTER   ||  \
+     X == USB_VENDOR_ZEROPLUS       ||  \
      X == 0x7545 /* SZ-MYPOWER */)
 
 #define USB_PRODUCT_8BITDO_XBOX_CONTROLLER                  0x2002