From ed7e7edb70d15a06387446dd9cbc623ecb41b5d6 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 5 Feb 2025 17:19:59 -0800 Subject: [PATCH] Don't use the HIDAPI driver for Thrustmaster wheels Closes https://github.com/libsdl-org/SDL/pull/12173 (cherry picked from commit 6782cfe2c5af72d70b7da4940f8d45ce7160d38e) --- src/joystick/hidapi/SDL_hidapijoystick.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/joystick/hidapi/SDL_hidapijoystick.c b/src/joystick/hidapi/SDL_hidapijoystick.c index a1cb9c4a57..b839ef79c7 100644 --- a/src/joystick/hidapi/SDL_hidapijoystick.c +++ b/src/joystick/hidapi/SDL_hidapijoystick.c @@ -197,7 +197,13 @@ SDL_bool HIDAPI_SupportsPlaystationDetection(Uint16 vendor, Uint16 product) case USB_VENDOR_SHANWAN_ALT: return SDL_TRUE; case USB_VENDOR_THRUSTMASTER: - return SDL_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 SDL_FALSE; case USB_VENDOR_ZEROPLUS: return SDL_TRUE; case 0x7545 /* SZ-MYPOWER */: