From b247975bd29ed2c8aed440a3f12033f8d0699bd4 Mon Sep 17 00:00:00 2001 From: Dael Date: Fri, 16 Aug 2024 00:20:52 +0800 Subject: [PATCH] update: use wait event, increase version number --- build/amd64/debian/control | 2 +- src/input.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/amd64/debian/control b/build/amd64/debian/control index b8ba120..70fc822 100644 --- a/build/amd64/debian/control +++ b/build/amd64/debian/control @@ -1,5 +1,5 @@ Package: heart-of-ice -Version: 1.0.3 +Version: 1.0.4 Maintainer: Dael Separa Architecture: amd64 Description: Heart of Ice (SDL) diff --git a/src/input.hpp b/src/input.hpp index a221942..88fe8a2 100644 --- a/src/input.hpp +++ b/src/input.hpp @@ -70,7 +70,7 @@ namespace Input while (1) { - SDL_PollEvent(&result); + SDL_WaitEvent(&result); if (result.type == SDL_QUIT) { @@ -341,7 +341,7 @@ namespace Input while (1) { - SDL_PollEvent(&result); + SDL_WaitEvent(&result); if (result.type == SDL_QUIT) {