Skip to content

Commit f04192b

Browse files
committed
SDL: Actually initialize joystick list with SDL3
1 parent 399db6b commit f04192b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/platform/sdl/sdl-events.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ bool mSDLInitEvents(struct mSDLEvents* context) {
9393
SDL_SetJoystickEventsEnabled(true);
9494
int nJoysticks;
9595
SDL_JoystickID* ids = SDL_GetJoysticks(&nJoysticks);
96+
SDL_JoystickListInit(&context->joysticks, nJoysticks);
9697
if (nJoysticks > 0) {
9798
mSDLUpdateJoysticks(context, NULL);
9899
int i;

0 commit comments

Comments
 (0)