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.
This commit is contained in:
Sam Lantinga
2025-02-26 17:54:43 -08:00
parent 1ea99bc904
commit eb89d0c8c3

View File

@@ -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;
}