Skip to content
Permalink
Browse files

DIRECTOR: Additional debug output for event processing

  • Loading branch information
sev- committed Mar 18, 2017
1 parent 4ca6f58 commit 6e33c2d5561dce43bff085cdd9416d2bcfd6d49f
Showing with 5 additions and 0 deletions.
  1. +5 −0 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);

0 comments on commit 6e33c2d

Please sign in to comment.
You can’t perform that action at this time.