From 3629d64413f73265f20820d7e614b1a0d8d4216c Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sat, 12 Jan 2008 08:18:37 +0000 Subject: Use getMousePos in checkInput. svn-id: r30439 --- engines/kyra/kyra_v2.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'engines') 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; -- cgit v1.2.3