aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
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;