diff options
author | Florian Kagerer | 2009-06-06 12:18:39 +0000 |
---|---|---|
committer | Florian Kagerer | 2009-06-06 12:18:39 +0000 |
commit | 94e976287081969c3c52e0e97bd400da09970f44 (patch) | |
tree | 6ba5f0a7e150985a8a40fa649cd9955112e04e75 | |
parent | 60e02ad6a81bc30d99c3f803893a88515b237c4e (diff) | |
download | scummvm-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
-rw-r--r-- | engines/kyra/kyra_v1.cpp | 8 |
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; |