ScummVM API documentation
Pegasus::InputDeviceManager Class Reference
Inheritance diagram for Pegasus::InputDeviceManager:
Common::Singleton< InputDeviceManager > Common::EventObserver Common::NonCopyable

Public Member Functions

bool notifyEvent (const Common::Event &event) override
 
void getInput (Input &, const InputBits)
 
void waitInput (const InputBits)
 
void pumpEvents ()
 
- Public Member Functions inherited from Common::EventObserver
virtual bool notifyEvent (const Event &event)=0
 
virtual void notifyPoll ()
 

Protected Attributes

bool _keysDown [kPegasusActionCount]
 
InputBits _lastRawBits
 
bool _AKeyWasDown
 

Additional Inherited Members

- Static Public Member Functions inherited from Common::Singleton< InputDeviceManager >
static bool hasInstance ()
 
static InputDeviceManager & instance ()
 
static void destroy ()
 
- Protected Types inherited from Common::Singleton< InputDeviceManager >
typedef InputDeviceManager SingletonBaseType
 
- Static Protected Attributes inherited from Common::Singleton< InputDeviceManager >
static InputDeviceManager * _singleton
 

Member Function Documentation

◆ notifyEvent()

bool Pegasus::InputDeviceManager::notifyEvent ( const Common::Event &  event)
overridevirtual

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.

Parameters
eventThe event that is incoming.
Return values
trueIf the event should not be passed to other observers, false otherwise.

Implements Common::EventObserver.


The documentation for this class was generated from the following file: