Bläddra i källkod

Check to see if joysticks are actually initialized in SDL_UpdateJoysticks()

Fixes https://github.com/libsdl-org/SDL/issues/14362
Sam Lantinga 1 månad sedan
förälder
incheckning
c21b7f8cb8
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/joystick/SDL_joystick.c

+ 1 - 1
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;
     }