Skip to content

Commit

Permalink
Unlock gamepad state during loading screens
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenCWills committed Feb 5, 2025
1 parent a3eea0f commit cfc01a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/interfac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <expected.hpp>

#include "control.h"
#include "controls/input.h"
#include "engine/clx_sprite.hpp"
#include "engine/dx.h"
#include "engine/events.hpp"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit cfc01a7

Please sign in to comment.