We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dea1b3 commit 6f6c0f1Copy full SHA for 6f6c0f1
src/ui/Window.cpp
@@ -94,7 +94,7 @@ void UI::Window::clearScreen() {
94
void UI::Window::pollEvents() {
95
SDL_Event windowEvent;
96
97
- if (SDL_PollEvent(&windowEvent)) {
+ if (SDL_WaitEvent(&windowEvent)) {
98
if (windowEvent.type == SDL_QUIT) {
99
closed = true;
100
} else if (windowEvent.type == SDL_KEYUP) {
0 commit comments