diff options
author | Eugene Sandulenko | 2017-03-18 19:04:10 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2017-03-18 19:05:25 +0100 |
commit | 6e33c2d5561dce43bff085cdd9416d2bcfd6d49f (patch) | |
tree | fdd53fa47ac0902fb251d0642ab776d39a819b1b /engines/director | |
parent | 4ca6f582645496310db9bf057d72b646fbc8a348 (diff) | |
download | scummvm-rg350-6e33c2d5561dce43bff085cdd9416d2bcfd6d49f.tar.gz scummvm-rg350-6e33c2d5561dce43bff085cdd9416d2bcfd6d49f.tar.bz2 scummvm-rg350-6e33c2d5561dce43bff085cdd9416d2bcfd6d49f.zip |
DIRECTOR: Additional debug output for event processing
Diffstat (limited to 'engines/director')
-rw-r--r-- | engines/director/events.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/director/events.cpp b/engines/director/events.cpp index cb9e1773ec..f93ec5a426 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); |