mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
Show the mapping used when a game controller is opened
This commit is contained in:
@@ -221,6 +221,7 @@ static void AddController(int device_index, SDL_bool verbose)
|
||||
const char *name = SDL_GameControllerName(gamecontroller);
|
||||
const char *path = SDL_GameControllerPath(gamecontroller);
|
||||
SDL_Log("Opened game controller %s%s%s\n", name, path ? ", " : "", path ? path : "");
|
||||
SDL_Log("Mapping: %s\n", SDL_GameControllerMapping(gamecontroller));
|
||||
}
|
||||
|
||||
firmware_version = SDL_GameControllerGetFirmwareVersion(gamecontroller);
|
||||
|
Reference in New Issue
Block a user