From 76285301aa191bcfc69aa6ae9b5caafc4eed0102 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 17 May 2009 21:52:31 +0000 Subject: Handle keyboard button press immediately. svn-id: r40657 --- engines/kyra/kyra_v1.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'engines') diff --git a/engines/kyra/kyra_v1.cpp b/engines/kyra/kyra_v1.cpp index 8df059db0d..80be55374a 100644 --- a/engines/kyra/kyra_v1.cpp +++ b/engines/kyra/kyra_v1.cpp @@ -315,8 +315,14 @@ int KyraEngine_v1::checkInput(Button *buttonList, bool mainLoop) { keys = 110; break; default: + keys = 0; break; } + + // When we got an keypress we might handle, break the event loop + // and pass it to GUI code. + if (keys) + breakLoop = true; } break; -- cgit v1.2.3