From b524af1b430ae5444a1ae1cf47aecad8bd0da90c Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 12 Jan 2025 10:02:39 -0800 Subject: [PATCH] testcontroller: log the ID of gamepads as they are added and removed --- test/testcontroller.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/testcontroller.c b/test/testcontroller.c index d7fb62c3d7..bc228166cc 100644 --- a/test/testcontroller.c +++ b/test/testcontroller.c @@ -1019,6 +1019,7 @@ static void HandleGamepadAdded(SDL_JoystickID id, bool verbose) if (i < 0) { return; } + SDL_Log("Gamepad %u added\n", id); SDL_assert(!controllers[i].gamepad); controllers[i].gamepad = SDL_OpenGamepad(id); @@ -1090,6 +1091,7 @@ static void HandleGamepadRemoved(SDL_JoystickID id) if (i < 0) { return; } + SDL_Log("Gamepad %u removed\n", id); if (controllers[i].mapping) { SDL_free(controllers[i].mapping);