[Scummvm-cvs-logs] SF.net SVN: scummvm:[43484] scummvm/branches/gsoc2009-draci/engines/draci/ mouse.cpp
dkasak13 at users.sourceforge.net
dkasak13 at users.sourceforge.net
Mon Aug 17 20:23:06 CEST 2009
Revision: 43484
http://scummvm.svn.sourceforge.net/scummvm/?rev=43484&view=rev
Author: dkasak13
Date: 2009-08-17 18:23:05 +0000 (Mon, 17 Aug 2009)
Log Message:
-----------
* Set the _x and _y position for the mouse only when an EVENT_MOUSEMOVE happens.
* Stop calling Mouse::setPosition() on EVENT_MOUSEMOVE since it's not needed (the engine warps the mouse automatically; I still left the method for situations when we want to warp the mouse explicitly).
Modified Paths:
--------------
scummvm/branches/gsoc2009-draci/engines/draci/mouse.cpp
Modified: scummvm/branches/gsoc2009-draci/engines/draci/mouse.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/mouse.cpp 2009-08-17 16:07:47 UTC (rev 43483)
+++ scummvm/branches/gsoc2009-draci/engines/draci/mouse.cpp 2009-08-17 18:23:05 UTC (rev 43484)
@@ -39,8 +39,6 @@
}
void Mouse::handleEvent(Common::Event event) {
- _x = (uint16) event.mouse.x;
- _y = (uint16) event.mouse.y;
switch (event.type) {
case Common::EVENT_LBUTTONDOWN:
@@ -64,7 +62,9 @@
break;
case Common::EVENT_MOUSEMOVE:
- setPosition(_x, _y);
+ debugC(6, kDraciGeneralDebugLevel, "Mouse move (x: %u y: %u)", _x, _y);
+ _x = (uint16) event.mouse.x;
+ _y = (uint16) event.mouse.y;
break;
default:
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