[Scummvm-cvs-logs] SF.net SVN: scummvm:[55569] scummvm/trunk/engines/hugo
strangerke at users.sourceforge.net
strangerke at users.sourceforge.net
Thu Jan 27 19:43:02 CET 2011
Revision: 55569
http://scummvm.svn.sourceforge.net/scummvm/?rev=55569&view=rev
Author: strangerke
Date: 2011-01-27 18:43:02 +0000 (Thu, 27 Jan 2011)
Log Message:
-----------
HUGO: Handle mouse 'UP' events instead of 'DOWN'.
This fixes the multiple clicks on object + message reported by D.Gray
Modified Paths:
--------------
scummvm/trunk/engines/hugo/hugo.cpp
scummvm/trunk/engines/hugo/mouse.cpp
Modified: scummvm/trunk/engines/hugo/hugo.cpp
===================================================================
--- scummvm/trunk/engines/hugo/hugo.cpp 2011-01-27 14:20:16 UTC (rev 55568)
+++ scummvm/trunk/engines/hugo/hugo.cpp 2011-01-27 18:43:02 UTC (rev 55569)
@@ -272,18 +272,12 @@
_mouseX = event.mouse.x;
_mouseY = event.mouse.y;
break;
- case Common::EVENT_LBUTTONDOWN:
+ case Common::EVENT_LBUTTONUP:
_status.leftButtonFl = true;
break;
- case Common::EVENT_LBUTTONUP:
- _status.leftButtonFl = false;
- break;
- case Common::EVENT_RBUTTONDOWN:
+ case Common::EVENT_RBUTTONUP:
_status.rightButtonFl = true;
break;
- case Common::EVENT_RBUTTONUP:
- _status.rightButtonFl = false;
- break;
case Common::EVENT_QUIT:
_status.doQuitFl = true;
break;
Modified: scummvm/trunk/engines/hugo/mouse.cpp
===================================================================
--- scummvm/trunk/engines/hugo/mouse.cpp 2011-01-27 14:20:16 UTC (rev 55568)
+++ scummvm/trunk/engines/hugo/mouse.cpp 2011-01-27 18:43:02 UTC (rev 55569)
@@ -96,7 +96,7 @@
* 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 @@
* 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;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list