From cfc01a7de4694e8f2ee57c974ad51e00eac5ba8c 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 b7b09811e64..4ca90c94ba2 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