An Event_Source can be registered to an Event_Queue. More...
#include <Event.hpp>
Public Member Functions | |
virtual std::auto_ptr< Event > | Handle (ALLEGRO_EVENT *raw_event) const =0 |
Processes Allegro event messages in to A5SES Events. | |
Event_Source () | |
Creates an invalid Event_Source object SetEventSource must be called before the object is valid. | |
Event_Source (ALLEGRO_EVENT_SOURCE *event_source_) | |
Points the Allegro event source towards this object. | |
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. | |
virtual | ~Event_Source () |
Customary virtual destructor for base types. |
An Event_Source can be registered to an Event_Queue.
a5::Event_Source::Event_Source | ( | ) |
Creates an invalid Event_Source object SetEventSource must be called before the object is valid.
a5::Event_Source::Event_Source | ( | ALLEGRO_EVENT_SOURCE * | event_source_ | ) |
Points the Allegro event source towards this object.
virtual a5::Event_Source::~Event_Source | ( | ) | [virtual] |
Customary virtual destructor for base types.
virtual std::auto_ptr<Event> a5::Event_Source::Handle | ( | ALLEGRO_EVENT * | raw_event | ) | const [pure virtual] |
Processes Allegro event messages in to A5SES Events.
Implemented in a5::Display, a5::User_Event_Source, a5::Keyboard, a5::Mouse, and a5::Timer.
void a5::Event_Source::SetEventSource | ( | ALLEGRO_EVENT_SOURCE * | event_source | ) |
Points the Allegro event source towards this object.
a5::Event_Source::operator ALLEGRO_EVENT_SOURCE * | ( | ) | const |
Returns a pointer to the Allegro event source.