Class EventManager¶
Defined in File event_manager.h
Class Documentation¶
-
class
EventManager
¶ An Event dispatcher and registrar that also allows looking up registered events.
Public Functions
-
void
addBinder
(EventBinderBase *binder)¶ Add an event binder which binds to several events per object. Does not need to be called externally.
-
void
removeBinder
(EventBinderBase *binder)¶
-
Variant
returnCall
(const Event &event) const¶ Publish an event. Returns the result of the first event handled.
-
void
deferredCall
(Ref<Event> event)¶ Publish an event that gets evaluated the end of the current frame.
-
void
dispatchDeferred
()¶ Dispatch deferred events collected so far.
-
const HashMap<EventBinderBase *, bool> &
getBinders
() const¶
Public Static Functions
-
static EventManager *
GetSingleton
()¶
-
void