Skip to content

Commit ed7e7ed

Browse files
committed
Don't use the HIDAPI driver for Thrustmaster wheels
Closes libsdl-org#12173 (cherry picked from commit 6782cfe)
1 parent 466cedc commit ed7e7ed

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/joystick/hidapi/SDL_hidapijoystick.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,13 @@ SDL_bool HIDAPI_SupportsPlaystationDetection(Uint16 vendor, Uint16 product)
197197
case USB_VENDOR_SHANWAN_ALT:
198198
return SDL_TRUE;
199199
case USB_VENDOR_THRUSTMASTER:
200-
return SDL_TRUE;
200+
/* Most of these are wheels, don't have the full set of effects, and
201+
* at least in the case of the T248 and T300 RS, the hid-tmff2 driver
202+
* puts them in a non-standard report mode and they can't be read.
203+
*
204+
* If these should use the HIDAPI driver, add them to controller_list.h
205+
*/
206+
return SDL_FALSE;
201207
case USB_VENDOR_ZEROPLUS:
202208
return SDL_TRUE;
203209
case 0x7545 /* SZ-MYPOWER */:

0 commit comments

Comments
 (0)