aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/kyra_v1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/kyra/kyra_v1.cpp')
-rw-r--r--engines/kyra/kyra_v1.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/engines/kyra/kyra_v1.cpp b/engines/kyra/kyra_v1.cpp
index 4615a0a5fc..6106efdf9c 100644
--- a/engines/kyra/kyra_v1.cpp
+++ b/engines/kyra/kyra_v1.cpp
@@ -370,10 +370,14 @@ int KyraEngine_v1::checkInput(Button *buttonList, bool mainLoop) {
}
GUI *guiInstance = gui();
- if (guiInstance && keys)
- return guiInstance->processButtonList(buttonList, keys | 0x8000, mouseWheel);
- else
+ if (guiInstance) {
+ if (keys)
+ return guiInstance->processButtonList(buttonList, keys | 0x8000, mouseWheel);
+ else
+ return guiInstance->processButtonList(buttonList, 0, mouseWheel);
+ } else {
return keys;
+ }
}
void KyraEngine_v1::updateInput() {