Don't put wired Switch Pro controllers into simple report mode
Build (All) / Create test plan (push) Waiting to run
Build (All) / level1 (push) Blocked by required conditions
Build (All) / level2 (push) Blocked by required conditions

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
+6
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;
}