Add debug print for enumerating controllers

This commit is contained in:
Clownacy 2020-01-21 12:30:54 +00:00
parent 4c7726221e
commit 63d5d766b2

View file

@ -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)
{