Parcourir la source

Don't use the HIDAPI driver for Thrustmaster wheels

Closes https://github.com/libsdl-org/SDL/pull/12173
Sam Lantinga il y a 2 mois
Parent
commit
6782cfe2c5
1 fichiers modifiés avec 7 ajouts et 1 suppressions
  1. 7 1
      src/joystick/hidapi/SDL_hidapijoystick.c

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

@@ -192,7 +192,13 @@ bool HIDAPI_SupportsPlaystationDetection(Uint16 vendor, Uint16 product)
     case USB_VENDOR_SHANWAN_ALT:
         return true;
     case USB_VENDOR_THRUSTMASTER:
-        return true;
+        /* Most of these are wheels, don't have the full set of effects, and
+         * at least in the case of the T248 and T300 RS, the hid-tmff2 driver
+         * puts them in a non-standard report mode and they can't be read.
+         *
+         * If these should use the HIDAPI driver, add them to controller_list.h
+         */
+        return false;
     case USB_VENDOR_ZEROPLUS:
         return true;
     case 0x7545 /* SZ-MYPOWER */: