Logo Search packages:      
Sourcecode: scummvm version File versions

virtual bool Common::EventObserver::notifyEvent ( const Event event ) [pure virtual]

Notifies 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. An 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.

Parameters:
eventthe event, which is incoming.
Returns:
true if the event should not be passed to other observers, false otherwise.

Implemented in DefaultEventManager, OpenGLGraphicsManager, OpenGLSdlGraphicsManager, SdlGraphicsManager, and Common::EventRecorder.

Referenced by Common::EventDispatcher::dispatch().

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index