Fix the remaining non-unicode version issues in the input library

This commit is contained in:
Michael Martin
2019-08-25 00:33:00 -07:00
parent d5407378ac
commit 4edbf36836
+6 -1
View File
@@ -242,7 +242,12 @@ TFB_InitInput (int driver, int flags)
log_add (log_Info, "The names of the joysticks are:"); log_add (log_Info, "The names of the joysticks are:");
for (i = 0; i < nJoysticks; i++) for (i = 0; i < nJoysticks; i++)
{ {
log_add (log_Info, " %s", SDL_JoystickName (i)); log_add (log_Info, " %s",
#if SDL_MAJOR_VERSION == 1
SDL_JoystickName (i));
#else
SDL_JoystickNameForIndex (i));
#endif
} }
SDL_JoystickEventState (SDL_ENABLE); SDL_JoystickEventState (SDL_ENABLE);
} }