diff options
author | Eugene Sandulenko | 2016-08-30 18:25:50 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-30 18:25:50 +0200 |
commit | 8e7566456a2eb671e634a1276b47f26c0b83419f (patch) | |
tree | 436a2f997e71d3ca5e10902bd084f4ec9c600a96 | |
parent | fe22b8bd0e70839a001e0c91e9e598faa36e724b (diff) | |
download | scummvm-rg350-8e7566456a2eb671e634a1276b47f26c0b83419f.tar.gz scummvm-rg350-8e7566456a2eb671e634a1276b47f26c0b83419f.tar.bz2 scummvm-rg350-8e7566456a2eb671e634a1276b47f26c0b83419f.zip |
DIRECTOR: Lingo: Documented when..then statements
-rw-r--r-- | engines/director/lingo/lingo.cpp | 8 | ||||
-rw-r--r-- | engines/director/lingo/lingo.h | 1 |
2 files changed, 6 insertions, 3 deletions
diff --git a/engines/director/lingo/lingo.cpp b/engines/director/lingo/lingo.cpp index 17e8ea44fe..dbc022798d 100644 --- a/engines/director/lingo/lingo.cpp +++ b/engines/director/lingo/lingo.cpp @@ -58,9 +58,9 @@ struct EventHandlerType { { kEventStart, "start" }, { kEventKeyUp, "keyUp" }, - { kEventKeyDown, "keyDown" }, - { kEventMouseUp, "mouseUp" }, - { kEventMouseDown, "mouseDown" }, + { kEventKeyDown, "keyDown" }, // D2 as when + { kEventMouseUp, "mouseUp" }, // D2 as when + { kEventMouseDown, "mouseDown" }, // D2 as when { kEventRightMouseDown, "rightMouseDown" }, { kEventRightMouseUp, "rightMouseUp" }, { kEventMouseEnter, "mouseEnter" }, @@ -68,6 +68,8 @@ struct EventHandlerType { { kEventMouseUpOutSide, "mouseUpOutSide" }, { kEventMouseWithin, "mouseWithin" }, + { kEventTimeout, "timeout" }, // D2 as when + { kEventNone, 0 }, }; diff --git a/engines/director/lingo/lingo.h b/engines/director/lingo/lingo.h index 4dd00417b8..0b3121574b 100644 --- a/engines/director/lingo/lingo.h +++ b/engines/director/lingo/lingo.h @@ -48,6 +48,7 @@ enum LEvent { kEventIdle, kEventStepFrame, kEventExitFrame, + kEventTimeout, kEventActivateWindow, kEventDeactivateWindow, |