|
Public Types |
| enum | {
TICK = SDL_USEREVENT,
DEFERRED_EVENT,
TERM_REQUEST,
TERM_COMPLETE,
HOOK = 31
} |
Public Member Functions |
| | Event () |
| | Default constructor.
|
| | Event (const Event &event) |
| | Copy constructor.
|
| | Event (const SDL_Event *event, double timestamp) |
| | Event (Fusion::IObject *self, const Fusion::Id &id, const Fusion::Value &val, double timestamp) |
| | Event (Fusion::IObject *self, const Fusion::Id &id, const Fusion::Vector< Fusion::Value > &vals, double timestamp) |
| | Event (HookType hookType, double timestamp, Fusion::IObject *obj=NULL, IInstance *instance=NULL) |
| virtual | ~Event () |
| void | setEvent (const SDL_Event *event, double timestamp) |
| | Set the event to the passed event.
|
| Event & | operator= (const Event &v) |
| const SDL_Event & | getEvent () const |
| | Get the current event.
|
| const DeferredEvent * | getDeferredEvent () const |
| HookType | getHookType () const |
| IInstance * | getInstance () const |
| Fusion::IObject * | getObject () const |
| double | getTimeStamp () const |
Static Public Member Functions |
| static uint32_t | mask (uint32_t t) |
| static uint32_t | hookMask (uint32_t t) |
Friends |
| FUSION_EXPORT friend bool | operator== (const Event &e1, const Event &e2) |
Classes |
| struct | DeferredEvent |
This is mostly a wrapper around SDL_Event, except that we add functionality in the SDL_UserEvent for our hook events. If the event type is SDL_USEREVENT, then the 'code' is the hook type and the two parameters are an IObject* and an IInstance*.