aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFlorian Kagerer2009-06-06 12:18:39 +0000
committerFlorian Kagerer2009-06-06 12:18:39 +0000
commit94e976287081969c3c52e0e97bd400da09970f44 (patch)
tree6ba5f0a7e150985a8a40fa649cd9955112e04e75 /engines
parent60e02ad6a81bc30d99c3f803893a88515b237c4e (diff)
downloadscummvm-rg350-94e976287081969c3c52e0e97bd400da09970f44.tar.gz
scummvm-rg350-94e976287081969c3c52e0e97bd400da09970f44.tar.bz2
scummvm-rg350-94e976287081969c3c52e0e97bd400da09970f44.zip
KYRA/LOL: fix input code for japanese game versions
svn-id: r41221
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/kyra_v1.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/kyra/kyra_v1.cpp b/engines/kyra/kyra_v1.cpp
index f3ba67a265..71045e116d 100644
--- a/engines/kyra/kyra_v1.cpp
+++ b/engines/kyra/kyra_v1.cpp
@@ -343,6 +343,10 @@ int KyraEngine_v1::checkInput(Button *buttonList, bool mainLoop, int eventFlag)
case Common::EVENT_LBUTTONUP: {
_mouseX = event.mouse.x;
_mouseY = event.mouse.y;
+ if (_flags.useHiResOverlay) {
+ _mouseX >>= 1;
+ _mouseY >>= 1;
+ }
keys = (event.type == Common::EVENT_LBUTTONDOWN ? 199 : (200 | 0x800));
breakLoop = true;
} break;
@@ -351,6 +355,10 @@ int KyraEngine_v1::checkInput(Button *buttonList, bool mainLoop, int eventFlag)
case Common::EVENT_RBUTTONUP: {
_mouseX = event.mouse.x;
_mouseY = event.mouse.y;
+ if (_flags.useHiResOverlay) {
+ _mouseX >>= 1;
+ _mouseY >>= 1;
+ }
keys = (event.type == Common::EVENT_RBUTTONDOWN ? 201 : (202 | 0x800));
breakLoop = true;
} break;