From 6eb6e5716ee1dc2f38d731c59de567e3ad478dfc Mon Sep 17 00:00:00 2001 From: staphen Date: Wed, 5 Feb 2025 00:57:49 -0500 Subject: [PATCH] Unlock gamepad state during loading screens --- Source/interfac.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/interfac.cpp b/Source/interfac.cpp index f456e0f47..57c05142d 100644 --- a/Source/interfac.cpp +++ b/Source/interfac.cpp @@ -12,6 +12,7 @@ #include #include "control.h" +#include "controls/input.h" #include "engine/clx_sprite.hpp" #include "engine/dx.h" #include "engine/events.hpp" @@ -683,9 +684,9 @@ void ShowProgress(interface_mode uMsg) while (true) { CheckShouldSkipRendering(); SDL_Event event; - // We use the real `SDL_PollEvent` here instead of `FetchEvent` + // We use the real `PollEvent` here instead of `FetchMessage` // to process real events rather than the recorded ones in demo mode. - while (SDL_PollEvent(&event)) { + while (PollEvent(&event)) { if (!processEvent(event)) return; } #if !SDL_PUSH_EVENT_BG_THREAD_WORKS