diff options
author | Arnaud Boutonné | 2011-01-27 18:43:02 +0000 |
---|---|---|
committer | Arnaud Boutonné | 2011-01-27 18:43:02 +0000 |
commit | fb8b4e1016695c1ddb156d054f04e4d625b27f09 (patch) | |
tree | 85475ccec09c0587cd6f6e701506ae30287f8649 /engines | |
parent | 5b958eb0d17c744c5dda0ad4d7f01023f17f0061 (diff) | |
download | scummvm-rg350-fb8b4e1016695c1ddb156d054f04e4d625b27f09.tar.gz scummvm-rg350-fb8b4e1016695c1ddb156d054f04e4d625b27f09.tar.bz2 scummvm-rg350-fb8b4e1016695c1ddb156d054f04e4d625b27f09.zip |
HUGO: Handle mouse 'UP' events instead of 'DOWN'.
This fixes the multiple clicks on object + message reported by D.Gray
svn-id: r55569
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hugo/hugo.cpp | 10 | ||||
-rw-r--r-- | engines/hugo/mouse.cpp | 4 |
2 files changed, 4 insertions, 10 deletions
diff --git a/engines/hugo/hugo.cpp b/engines/hugo/hugo.cpp index 60b96d9275..3f37bcb256 100644 --- a/engines/hugo/hugo.cpp +++ b/engines/hugo/hugo.cpp @@ -272,17 +272,11 @@ Common::Error HugoEngine::run() { _mouseX = event.mouse.x; _mouseY = event.mouse.y; break; - case Common::EVENT_LBUTTONDOWN: - _status.leftButtonFl = true; - break; case Common::EVENT_LBUTTONUP: - _status.leftButtonFl = false; - break; - case Common::EVENT_RBUTTONDOWN: - _status.rightButtonFl = true; + _status.leftButtonFl = true; break; case Common::EVENT_RBUTTONUP: - _status.rightButtonFl = false; + _status.rightButtonFl = true; break; case Common::EVENT_QUIT: _status.doQuitFl = true; diff --git a/engines/hugo/mouse.cpp b/engines/hugo/mouse.cpp index 298ab4e26e..63e56ea210 100644 --- a/engines/hugo/mouse.cpp +++ b/engines/hugo/mouse.cpp @@ -96,7 +96,7 @@ int16 MouseHandler::findExit(int16 cx, int16 cy) { * Process a mouse right click at coord cx, cy over object objid */ void MouseHandler::processRightClick(int16 objId, int16 cx, int16 cy) { - debugC(1, kDebugMouse, "Process_rclick(%d, %d, %d)", objId, cx, cy); + debugC(1, kDebugMouse, "ProcessRightClick(%d, %d, %d)", objId, cx, cy); status_t &gameStatus = _vm->getGameStatus(); @@ -145,7 +145,7 @@ void MouseHandler::processRightClick(int16 objId, int16 cx, int16 cy) { * 5. Exit - walk to exit hotspot */ void MouseHandler::processLeftClick(int16 objId, int16 cx, int16 cy) { - debugC(1, kDebugMouse, "Process_lclick(%d, %d, %d)", objId, cx, cy); + debugC(1, kDebugMouse, "ProcessLeftClick(%d, %d, %d)", objId, cx, cy); int16 i, x, y; object_t *obj; |