mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-28 11:57:24 +08:00
Check to see if joysticks are actually initialized in SDL_UpdateJoysticks()
Fixes https://github.com/libsdl-org/SDL/issues/14362
(cherry picked from commit c21b7f8cb8)
This commit is contained in:
@@ -2502,7 +2502,7 @@ void SDL_UpdateJoysticks(void)
|
|||||||
Uint64 now;
|
Uint64 now;
|
||||||
SDL_Joystick *joystick;
|
SDL_Joystick *joystick;
|
||||||
|
|
||||||
if (!SDL_WasInit(SDL_INIT_JOYSTICK)) {
|
if (!SDL_joysticks_initialized) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user