diff options
Diffstat (limited to 'src/libui_sdl/main.cpp')
-rw-r--r-- | src/libui_sdl/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libui_sdl/main.cpp b/src/libui_sdl/main.cpp index 47c6e17..6b323c6 100644 --- a/src/libui_sdl/main.cpp +++ b/src/libui_sdl/main.cpp @@ -788,12 +788,12 @@ int EmuThreadFunc(void* burp) while (EmuRunning != 0) { + SDL_JoystickUpdate(); + if (EmuRunning == 1) { EmuStatus = 1; - SDL_JoystickUpdate(); - if (Joystick) { if (!SDL_JoystickGetAttached(Joystick)) |