Add debug print for enumerating controllers
This commit is contained in:
parent
4c7726221e
commit
63d5d766b2
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue