From c21b7f8cb84c43955c83cbd25528861a29f112be Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 30 Oct 2025 08:53:57 -0700 Subject: [PATCH] Check to see if joysticks are actually initialized in SDL_UpdateJoysticks() Fixes https://github.com/libsdl-org/SDL/issues/14362 --- src/joystick/SDL_joystick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/SDL_joystick.c b/src/joystick/SDL_joystick.c index b66c30303d..1841341831 100644 --- a/src/joystick/SDL_joystick.c +++ b/src/joystick/SDL_joystick.c @@ -2718,7 +2718,7 @@ void SDL_UpdateJoysticks(void) Uint64 now; SDL_Joystick *joystick; - if (!SDL_WasInit(SDL_INIT_JOYSTICK)) { + if (!SDL_joysticks_initialized) { return; }