We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 399db6b commit f04192bCopy full SHA for f04192b
src/platform/sdl/sdl-events.c
@@ -93,6 +93,7 @@ bool mSDLInitEvents(struct mSDLEvents* context) {
93
SDL_SetJoystickEventsEnabled(true);
94
int nJoysticks;
95
SDL_JoystickID* ids = SDL_GetJoysticks(&nJoysticks);
96
+ SDL_JoystickListInit(&context->joysticks, nJoysticks);
97
if (nJoysticks > 0) {
98
mSDLUpdateJoysticks(context, NULL);
99
int i;
0 commit comments