ScummVM API documentation
DS::Keyboard Class Reference
Inheritance diagram for DS::Keyboard:
Common::EventSource

Public Member Functions

 Keyboard (Common::EventDispatcher *eventDispatcher)
 
void init (int layer, int mapBase, int tileBase, bool mainDisplay)
 
void show ()
 
void hide ()
 
bool isVisible () const
 
virtual bool pollEvent (Common::Event &event)
 
- Public Member Functions inherited from Common::EventSource
virtual bool pollEvent (Event &event)=0
 
virtual bool allowMapping () const
 

Protected Member Functions

bool mapKey (int key, Common::KeyState &ks)
 

Protected Attributes

Common::EventDispatcher * _eventDispatcher
 
int _lastKey
 
bool _visible
 

Member Function Documentation

◆ pollEvent()

virtual bool DS::Keyboard::pollEvent ( Common::Event &  event)
virtual

Query an event from the source.

Parameters
eventReference to the event struct where the event should be stored.
Return values
trueIf an event was polled, false otherwise.

Implements Common::EventSource.


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