From eb89d0c8c327b85d9b95c4c03dbc98d549ed2ce2 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 26 Feb 2025 17:54:43 -0800 Subject: [PATCH] Don't put wired Switch Pro controllers into simple report mode This stops the controller from sending input or responding to queries until it's unplugged. --- src/joystick/hidapi/SDL_hidapi_switch.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/joystick/hidapi/SDL_hidapi_switch.c b/src/joystick/hidapi/SDL_hidapi_switch.c index 2830aee916..0e7b823c55 100644 --- a/src/joystick/hidapi/SDL_hidapi_switch.c +++ b/src/joystick/hidapi/SDL_hidapi_switch.c @@ -813,6 +813,12 @@ static Uint8 GetDefaultInputMode(SDL_DriverSwitch_Context *ctx) } break; } + + // Wired controllers break if they are put into simple controller state + if (input_mode == k_eSwitchInputReportIDs_SimpleControllerState && + !ctx->device->is_bluetooth) { + input_mode = k_eSwitchInputReportIDs_FullControllerState; + } return input_mode; }