Skip to content

Commit

Permalink
DIRECTOR: Add user actions, sprite, movie events to lingo events
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Iskrich authored and sev- committed Aug 3, 2016
1 parent cd0e04f commit a027640
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
20 changes: 20 additions & 0 deletions engines/director/lingo/lingo.cpp
Expand Up @@ -28,6 +28,14 @@ struct EventHandlerType {
LEvent handler;
const char *name;
} static const eventHanlerDescs[] = {
{ kEventPrepareMovie, "prepareMovie" },
{ kEventStartMovie, "startMovie" },
{ kEventStopMovie, "stopMovie" },

{ kEventNew, "newSprite" },
{ kEventBeginSprite, "beginSprite" },
{ kEventEndSprite, "endSprite" },

{ kEventEnterFrame, "enterFrame" },
{ kEventPrepareFrame, "prepareFrame" },
{ kEventExitFrame, "exitFrame" },
Expand All @@ -39,6 +47,18 @@ struct EventHandlerType {
{ kEventOpenWindow, "openWindow" },
{ kEventCloseWindow, "closeWindow" },
{ kEventStart, "start" },

{ kEventKeyUp, "keyUp" },
{ kEventKeyDown, "keyDown" },
{ kEventMouseUp, "mouseUp" },
{ kEventMouseDown, "mouseDown" },
{ kEventRightMouseDown, "rightMouseDown" },
{ kEventRightMouseUp, "rightMouseUp" },
{ kEventMouseEnter, "mouseEnter" },
{ kEventMouseLeave, "mouseLeave" },
{ kEventMouseUpOutSide, "mouseUpOutSide" },
{ kEventMouseWithin "mouseWithin" },

{ kEventNone, 0 },
};

Expand Down
19 changes: 19 additions & 0 deletions engines/director/lingo/lingo.h
Expand Up @@ -29,6 +29,14 @@
namespace Director {

enum LEvent {
kEventPrepareMovie,
kEventStartMovie,
kEventStopMovie,

kEventNew,
kEventBeginSprite,
kEventEndSprite,

kEventNone,
kEventEnterFrame,
kEventPrepareFrame,
Expand All @@ -41,6 +49,17 @@ enum LEvent {
kEventOpenWindow,
kEventCloseWindow,

kEventKeyUp,
kEventKeyDown,
kEventMouseUp,
kEventMouseDown,
kEventRightMouseUp,
kEventRightMouseDown,
kEventMouseEnter,
kEventMouseLeave,
kEventMouseUpOutSide,
kEventMouseWithin,

kEventStart
};

Expand Down

0 comments on commit a027640

Please sign in to comment.