aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/kyra/kyra_v1.cpp6
1 files changed, 6 insertions, 0 deletions
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;