ref: 63d5d766b2644ff544c21e3d9b315c9486ef35f6
parent: 4c7726221e0cac8b8162f5f157f14207591eed17
author: Clownacy <[email protected]>
date: Tue Jan 21 07:30:54 EST 2020
Add debug print for enumerating controllers
--- a/src/Input.cpp
+++ b/src/Input.cpp
@@ -44,6 +44,11 @@
{
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)
{