User-defined event sources. More...
#include <Event.hpp>
Public Member Functions | |
User_Event_Source () | |
Creates a user event source. | |
virtual std::auto_ptr< Event > | Handle (ALLEGRO_EVENT *raw_event) const |
Processes Allegro event messages in to A5SES Events. | |
void | Emit (a5::Event *event) |
Emits a user event After being emitted it is not valid to access event. | |
virtual | ~User_Event_Source () |
Destroys the user event source. | |
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. |
User-defined event sources.
a5::User_Event_Source::User_Event_Source | ( | ) |
Creates a user event source.
virtual a5::User_Event_Source::~User_Event_Source | ( | ) | [virtual] |
Destroys the user event source.
virtual std::auto_ptr<Event> a5::User_Event_Source::Handle | ( | ALLEGRO_EVENT * | raw_event | ) | const [virtual] |
Processes Allegro event messages in to A5SES Events.
Implements a5::Event_Source.
void a5::User_Event_Source::Emit | ( | a5::Event * | event | ) |
Emits a user event After being emitted it is not valid to access event.
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.