EventHandler

These class handles incomming events and returns outcomming events.

Members

Enums

State
enum State
Undocumented in source.

Static functions

clear
void clear(Event.Type type)

Clear the Event queue.

hasEvent
bool hasEvent(Event.Type type)
hasQuitEvent
bool hasQuitEvent()
poll
bool poll(Event* event)

Update the parameter event and set the data of the current event in it.

push
bool push(Event.Type type)

Push an event of the given type inside the Event queue.

setState
State setState(Event.Type type, State state)

Set a state for a Event.Type.

wait
bool wait(Event* event, int timeout)

Waits for the given Event. If the seconds parameter is greater then -1, it waits maximal timeout seconds.

Meta

Authors

rschuett