#include <events.h>
Public Member Functions | |
virtual bool | notifyEvent (const Event &event)=0 |
virtual void | notifyPoll () |
Object that catches and processes Events.
An example for this is the Engine object - it catches events and processes them.
|
pure virtual |
Notify the observer of an incoming event.
An observer is supposed to 'eat' the event, with returning true, when it wants to prevent other observers from receiving the event. A usage example here is the keymapper: If it processes an Event, it should 'eat' it and create a new event, which the EventDispatcher will then catch.
event | The event that is incoming. |
true | If the event should not be passed to other observers, false otherwise. |
Implemented in SurfaceSdlGraphicsManager, N3DS::OSystem_3DS, AtariGraphicsManager, SdlGraphicsManager, Pegasus::InputDeviceManager, Common::VirtualMouse, OpenGLSdlGraphicsManager, and AtariMixerManager.
|
inlinevirtual |
Notify the observer of pollEvent() query.