![]() |
Public API Reference |
#include <csinput.h>
Inheritance diagram for iKeyboardDriver:
Public Methods | |
virtual void | Reset ()=0 |
Call to release all key down flags (when focus switches from application window, for example). More... | |
virtual void | DoKey (int iKey, int iChar, bool iDown)=0 |
Call to add a key down/up event to queue. More... | |
virtual bool | GetKeyState (int iKey)=0 |
Query the state of a key. More... |
Keyboard driver should generate events and put them into an event queue. Also it tracks the current state of all keys. Typically, one instance of this object is available from the shared-object registry (iObjectRegistry) under the name "crystalspace.driver.input.generic.keyboard".
Definition at line 54 of file iutil/csinput.h.
|
Call to add a key down/up event to queue.
Implemented in csKeyboardDriver. |
|
Query the state of a key. All key codes in range 0..255, CSKEY_FIRST..CSKEY_LAST are supported. Returns true if the key is pressed, false if not. Implemented in csKeyboardDriver. |
|
Call to release all key down flags (when focus switches from application window, for example).
Implemented in csKeyboardDriver. |