aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/hugo/hugo.cpp10
-rw-r--r--engines/hugo/mouse.cpp4
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;