mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 19:38:14 +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 *name = SDL_GameControllerName(gamecontroller);
|
||||||
const char *path = SDL_GameControllerPath(gamecontroller);
|
const char *path = SDL_GameControllerPath(gamecontroller);
|
||||||
SDL_Log("Opened game controller %s%s%s\n", name, path ? ", " : "", path ? path : "");
|
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);
|
firmware_version = SDL_GameControllerGetFirmwareVersion(gamecontroller);
|
||||||
|
Reference in New Issue
Block a user