Adapt game input for Switch controllers
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user