#include <events.h>
Public Member Functions | |
| void | addEvent (const Event &ev) |
| bool | pollEvent (Event &ev) override |
| bool | allowMapping () const override |
| virtual bool | pollEvent (Event &event)=0 |
| virtual bool | allowMapping () const |
Protected Attributes | |
| Queue< Event > | _artificialEventQueue |
An artificial event source. This class is used as an event source, which is made up by client-specific events.
Example use cases for this are the Keymapper or the DefaultEventManager.
|
inline |
Put the specified event into the queue.
|
inlineoverridevirtual |
Query an event from the source.
| event | Reference to the event struct where the event should be stored. |
| true | If an event was polled, false otherwise. |
Implements Common::EventSource.
|
inlineoverridevirtual |
By default, an artificial event source prevents its events from being mapped.
Reimplemented from Common::EventSource.