#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 DSEventSource, OSystem_Dreamcast, DS::Keyboard, OSystem_N64, OSystem_PSP, AtariEventSource, EmscriptenSdlEventSource, SdlEventSource, SwitchEventSource, N3DS::OSystem_3DS, OSystem_Android, OSystem_iOS7, OSystem_libretro, OSystem_Wii, Common::OSDMessageQueue, Common::ArtificialEventSource, Common::DelayedEventSource, and Common::VirtualMouse.
|
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::DelayedEventSource, and Common::ArtificialEventSource.