[Scummvm-git-logs] scummvm master -> 6e33c2d5561dce43bff085cdd9416d2bcfd6d49f
sev-
sev at scummvm.org
Sat Mar 18 19:05:34 CET 2017
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
6e33c2d556 DIRECTOR: Additional debug output for event processing
Commit: 6e33c2d5561dce43bff085cdd9416d2bcfd6d49f
https://github.com/scummvm/scummvm/commit/6e33c2d5561dce43bff085cdd9416d2bcfd6d49f
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2017-03-18T19:05:25+01:00
Commit Message:
DIRECTOR: Additional debug output for event processing
Changed paths:
engines/director/events.cpp
diff --git a/engines/director/events.cpp b/engines/director/events.cpp
index cb9e177..f93ec5a 100644
--- a/engines/director/events.cpp
+++ b/engines/director/events.cpp
@@ -66,6 +66,8 @@ void DirectorEngine::processEvents() {
spriteId = currentFrame->getSpriteIDFromPos(pos);
sc->_currentMouseDownSpriteId = spriteId;
+ debugC(3, kDebugEvents, "event: Button Down @(%d, %d), sprite id: %d", pos.x, pos.y, spriteId);
+
if (getVersion() > 3) {
// TODO: check that this is the order of script execution!
_lingo->processEvent(kEventMouseDown, kCastScript, currentFrame->_sprites[spriteId]->_castId);
@@ -81,6 +83,9 @@ void DirectorEngine::processEvents() {
pos = g_system->getEventManager()->getMousePos();
spriteId = currentFrame->getSpriteIDFromPos(pos);
+
+ debugC(3, kDebugEvents, "event: Button Up @(%d, %d), sprite id: %d", pos.x, pos.y, spriteId);
+
if (getVersion() > 3) {
// TODO: check that this is the order of script execution!
_lingo->processEvent(kEventMouseUp, kCastScript, currentFrame->_sprites[spriteId]->_castId);
More information about the Scummvm-git-logs
mailing list