From 63d5d766b2644ff544c21e3d9b315c9486ef35f6 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Tue, 21 Jan 2020 12:30:54 +0000 Subject: [PATCH] Add debug print for enumerating controllers --- src/Input.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Input.cpp b/src/Input.cpp index ecd4228d..451776fa 100644 --- a/src/Input.cpp +++ b/src/Input.cpp @@ -44,6 +44,11 @@ BOOL HookDirectInputDevice(void) { int i; +#ifndef NDEBUG + for (i = 0; i < SDL_NumJoysticks(); ++i) + printf("Joystick #%d name: %s\n", i, SDL_JoystickNameForIndex(i)); +#endif + // Open first available joystick for (i = 0; i < SDL_NumJoysticks(); ++i) {