#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). | |
virtual void | DoKey (int iKey, int iChar, bool iDown)=0 |
Call to add a key down/up event to queue. | |
virtual bool | GetKeyState (int iKey)=0 |
Query the state of a key. More... |
p> 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".
|
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. Reimplemented in csKeyboardDriver. |