diff options
author | Florian Kagerer | 2009-06-01 17:50:30 +0000 |
---|---|---|
committer | Florian Kagerer | 2009-06-01 17:50:30 +0000 |
commit | 42032cf7eccc5bdc9b179c5ce3f575af3396e1f0 (patch) | |
tree | 329f48aa8c5d206f592b632b83dc2095c0b854fd /engines | |
parent | 19a6eac4cad6dfdc99fc99cf826827a85c0fa5d2 (diff) | |
download | scummvm-rg350-42032cf7eccc5bdc9b179c5ce3f575af3396e1f0.tar.gz scummvm-rg350-42032cf7eccc5bdc9b179c5ce3f575af3396e1f0.tar.bz2 scummvm-rg350-42032cf7eccc5bdc9b179c5ce3f575af3396e1f0.zip |
LOL: - minor fix to the input code
svn-id: r41104
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/kyra_v1.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/engines/kyra/kyra_v1.cpp b/engines/kyra/kyra_v1.cpp index 2d8f6955a5..a5e6503d7c 100644 --- a/engines/kyra/kyra_v1.cpp +++ b/engines/kyra/kyra_v1.cpp @@ -341,18 +341,16 @@ int KyraEngine_v1::checkInput(Button *buttonList, bool mainLoop, int eventFlag) case Common::EVENT_LBUTTONDOWN: case Common::EVENT_LBUTTONUP: { - Common::Point pos = getMousePos(); - _mouseX = pos.x; - _mouseY = pos.y; + _mouseX = event.mouse.x; + _mouseY = event.mouse.y; keys = (event.type == Common::EVENT_LBUTTONDOWN ? 199 : (200 | 0x800)); breakLoop = true; } break; case Common::EVENT_RBUTTONDOWN: case Common::EVENT_RBUTTONUP: { - Common::Point pos = getMousePos(); - _mouseX = pos.x; - _mouseY = pos.y; + _mouseX = event.mouse.x; + _mouseY = event.mouse.y; keys = (event.type == Common::EVENT_RBUTTONDOWN ? 201 : (202 | 0x800)); breakLoop = true; } break; |