#include <events.h>
Public Member Functions | |
virtual bool | pollEvent (Event &event)=0 |
virtual bool | allowMapping () const |
A source of Events.
An example for this is OSystem, which provides events created by the system and/or user.
|
pure virtual |
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. |
Implemented in Common::ArtificialEventSource, OSystem_Android, Common::DelayedEventSource, OSystem_Wii, OSystem_N64, OSystem_Dreamcast, OSystem_iOS7, OSystem_PSP, N3DS::OSystem_3DS, OSystem_libretro, Common::OSDMessageQueue, SdlEventSource, Common::VirtualMouse, DS::Keyboard, AtariEventSource, DSEventSource, and SwitchEventSource.
|
inlinevirtual |
Check whether events from this source are allowed to be mapped.
Possible event sources not allowing mapping are: the event recorder/player and/or the EventManager, which allows user events to be pushed.
By default, mapping is allowed for every event source.
Reimplemented in Common::ArtificialEventSource, and Common::DelayedEventSource.