#include <events.h>
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.
◆ addEvent()
void Common::ArtificialEventSource::addEvent |
( |
const Event & |
ev | ) |
|
|
inline |
Put the specified event into the queue.
◆ pollEvent()
bool Common::ArtificialEventSource::pollEvent |
( |
Event & |
event | ) |
|
|
inlinevirtual |
Query an event from the source.
- Parameters
-
event | Reference to the event struct where the event should be stored. |
- Return values
-
true | If an event was polled, false otherwise. |
Implements Common::EventSource.
◆ allowMapping()
virtual bool Common::ArtificialEventSource::allowMapping |
( |
| ) |
const |
|
inlinevirtual |
By default, an artificial event source prevents its events from being mapped.
Reimplemented from Common::EventSource.
The documentation for this class was generated from the following file: