Browse Source

joystick: Rework GIP code to allow separate states for individual attachments

This is needed for future work bringing up things like the chatpad.

This commit also fixes a few minor things, such as still sending motor packets
to devices that don't support it, enabling quirks that hide trigger rumble on
devices that are marked as not having it, and fixing #12942.
Vicki Pfau 4 months ago
parent
commit
2248d3812e
2 changed files with 261 additions and 224 deletions
  1. 260 224
      src/joystick/hidapi/SDL_hidapi_gip.c
  2. 1 0
      src/joystick/usb_ids.h

File diff suppressed because it is too large
+ 260 - 224
src/joystick/hidapi/SDL_hidapi_gip.c


+ 1 - 0
src/joystick/usb_ids.h

@@ -102,6 +102,7 @@
 #define USB_PRODUCT_NVIDIA_SHIELD_CONTROLLER_V103         0x7210
 #define USB_PRODUCT_NVIDIA_SHIELD_CONTROLLER_V103         0x7210
 #define USB_PRODUCT_NVIDIA_SHIELD_CONTROLLER_V104         0x7214
 #define USB_PRODUCT_NVIDIA_SHIELD_CONTROLLER_V104         0x7214
 #define USB_PRODUCT_PDP_ROCK_CANDY                        0x0246
 #define USB_PRODUCT_PDP_ROCK_CANDY                        0x0246
+#define USB_PRODUCT_POWERA_MINI                           0x541a
 #define USB_PRODUCT_RAZER_ATROX                           0x0a00
 #define USB_PRODUCT_RAZER_ATROX                           0x0a00
 #define USB_PRODUCT_RAZER_KITSUNE                         0x1012
 #define USB_PRODUCT_RAZER_KITSUNE                         0x1012
 #define USB_PRODUCT_RAZER_PANTHERA                        0x0401
 #define USB_PRODUCT_RAZER_PANTHERA                        0x0401

Some files were not shown because too many files changed in this diff