From a70c97a56954a39bcae9557abd904cd3ffba2695 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Thu, 27 Oct 2016 02:05:05 +0200 Subject: [PATCH] Fix input update. --- src/gamescenebase.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gamescenebase.cpp b/src/gamescenebase.cpp index 1cfed84..794a60b 100644 --- a/src/gamescenebase.cpp +++ b/src/gamescenebase.cpp @@ -69,7 +69,9 @@ namespace curry { } void GameSceneBase::exec() { - if (DoEvents(*m_input, m_sdlmain)) + const bool quit = DoEvents(*m_input, m_sdlmain); + m_input->KeyStateUpdateFinished(); + if (quit) set_wants_to_quit(); this->on_update();