SDL: Show the mapping used when a game controller is opened

From 2d81beb819f4bc65294fc3451f360f2350cfa11a Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
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 19edb28e2f2b..e19d1ebac097 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);