aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2008-01-12 08:18:37 +0000
committerJohannes Schickel2008-01-12 08:18:37 +0000
commit3629d64413f73265f20820d7e614b1a0d8d4216c (patch)
tree6f2c552fcb17e1089132d5e6946cacd6da805bfc /engines
parent4f8cf19292ed5d76b0e67a77331ae7d5a2112955 (diff)
downloadscummvm-rg350-3629d64413f73265f20820d7e614b1a0d8d4216c.tar.gz
scummvm-rg350-3629d64413f73265f20820d7e614b1a0d8d4216c.tar.bz2
scummvm-rg350-3629d64413f73265f20820d7e614b1a0d8d4216c.zip
Use getMousePos in checkInput.
svn-id: r30439
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/kyra_v2.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/kyra/kyra_v2.cpp b/engines/kyra/kyra_v2.cpp
index aef4967f63..5577079f01 100644
--- a/engines/kyra/kyra_v2.cpp
+++ b/engines/kyra/kyra_v2.cpp
@@ -674,12 +674,13 @@ int KyraEngine_v2::checkInput(void *p) {
breakLoop = true;
break;
- case Common::EVENT_LBUTTONUP:
- _mouseX = event.mouse.x;
- _mouseY = event.mouse.y;
+ case Common::EVENT_LBUTTONUP: {
+ Common::Point pos = getMousePos();
+ _mouseX = pos.x;
+ _mouseY = pos.y;
keys = 198;
breakLoop = true;
- break;
+ } break;
case Common::EVENT_QUIT:
_quitFlag = true;