From 25980bc29cd158bf059a1b88106ac9eeebca8eff Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Thu, 21 May 2009 17:49:51 +0000 Subject: Changed code to closer match original input handling. svn-id: r40770 --- engines/kyra/kyra_v1.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'engines/kyra/kyra_v1.cpp') 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() { -- cgit v1.2.3