mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-14 18:27:50 +00: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:
parent
2bbd74b4b6
commit
70b12c1b1b
1 changed files with 1 additions and 1 deletions
|
|
@ -2502,7 +2502,7 @@ void SDL_UpdateJoysticks(void)
|
|||
Uint64 now;
|
||||
SDL_Joystick *joystick;
|
||||
|
||||
if (!SDL_WasInit(SDL_INIT_JOYSTICK)) {
|
||||
if (!SDL_joysticks_initialized) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue