From a56aaea1391558737866156a5f0be811b956725b Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 7 Jan 2020 16:47:56 -0800 Subject: [PATCH] Fixed handling the 8BitDo M30 in Nintendo Switch mode --- src/joystick/hidapi/SDL_hidapi_switch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/joystick/hidapi/SDL_hidapi_switch.c b/src/joystick/hidapi/SDL_hidapi_switch.c index b49182595..208ff15f4 100644 --- a/src/joystick/hidapi/SDL_hidapi_switch.c +++ b/src/joystick/hidapi/SDL_hidapi_switch.c @@ -445,7 +445,8 @@ static SDL_bool BTrySetupUSB(SDL_DriverSwitch_Context *ctx) return SDL_FALSE; } if (!WriteProprietary(ctx, k_eSwitchProprietaryCommandIDs_HighSpeed, NULL, 0, SDL_TRUE)) { - return SDL_FALSE; + /* The 8BitDo M30 doesn't respond to this command, but otherwise works correctly */ + /*return SDL_FALSE;*/ } if (!WriteProprietary(ctx, k_eSwitchProprietaryCommandIDs_Handshake, NULL, 0, SDL_TRUE)) { return SDL_FALSE;