From 2d81beb819f4bc65294fc3451f360f2350cfa11a Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 21 Nov 2023 13:49:38 -0800 Subject: [PATCH] Show the mapping used when a game controller is opened --- test/testgamecontroller.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/testgamecontroller.c b/test/testgamecontroller.c index 19edb28e2..e19d1ebac 100644 --- a/test/testgamecontroller.c +++ b/test/testgamecontroller.c @@ -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);