Classes | |
class | Event |
Timer event object. More... | |
Public Member Functions | |
Timer (double hz) | |
Creates a new timer with the specified rate. | |
void | Start () |
Start a timer. | |
void | Stop () |
Stops a timer. | |
std::auto_ptr< a5::Event > | Handle (ALLEGRO_EVENT *raw_event) const |
Processes Allegro event messages in to A5SES Events. | |
operator ALLEGRO_TIMER * () const | |
ALLEGRO_TIMER * | Release () |
Releases the held C structure so it is no longer automatically freed. | |
void | SetEventSource (ALLEGRO_EVENT_SOURCE *event_source) |
Points the Allegro event source towards this object. | |
operator ALLEGRO_EVENT_SOURCE * () const | |
Returns a pointer to the Allegro event source. |
a5::Timer::Timer | ( | double | hz | ) |
Creates a new timer with the specified rate.
void a5::Timer::Start | ( | ) |
Start a timer.
void a5::Timer::Stop | ( | ) |
Stops a timer.
std::auto_ptr<a5::Event> a5::Timer::Handle | ( | ALLEGRO_EVENT * | raw_event | ) | const [virtual] |
Processes Allegro event messages in to A5SES Events.
Implements a5::Event_Source.
ALLEGRO_TIMER* a5::Timer::Release | ( | ) |
Releases the held C structure so it is no longer automatically freed.
void a5::Event_Source::SetEventSource | ( | ALLEGRO_EVENT_SOURCE * | event_source | ) | [inherited] |
Points the Allegro event source towards this object.
a5::Event_Source::operator ALLEGRO_EVENT_SOURCE * | ( | ) | const [inherited] |
Returns a pointer to the Allegro event source.