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 | allowMapping () const |
Protected Member Functions | |
| bool | mapKey (int key, Common::KeyState &ks) |
Protected Attributes | |
| Common::EventDispatcher * | _eventDispatcher |
| int | _lastKey |
| bool | _visible |
|
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. |
Implements Common::EventSource.