Adapt game input for Switch controllers

This commit is contained in:
2026-06-09 13:28:31 +08:00
parent 8bbb847a1b
commit d5e876e542
4 changed files with 137 additions and 12 deletions
@@ -204,6 +204,7 @@ bool Application::initCoreModules() {
ScopedStartupTrace stageTrace("SDL_GameControllerOpen(0)");
if (SDL_GameController *controller = SDL_GameControllerOpen(0)) {
SDL_Log("GameController opened: %s", SDL_GameControllerName(controller));
SDL_GameControllerClose(controller);
} else {
SDL_Log("No GameController found");
}