![]() |
Public API Reference |
#include <csinput.h>
Inheritance diagram for csKeyboardDriver:
Public Methods | |
csKeyboardDriver (iObjectRegistry *) | |
Initialize keyboard interface. More... | |
virtual | ~csKeyboardDriver () |
Destructor. More... | |
virtual void | Reset () |
Call to release all key down flags. More... | |
virtual void | DoKey (int iKey, int iChar, bool iDown) |
Call this routine to add a key down/up event to queue. More... | |
virtual bool | GetKeyState (int iKey) |
Query the state of a key. More... | |
virtual void | LostFocus () |
Application lost focus. More... | |
Public Attributes | |
csKeyboardDriver::eiEventHandler | scfiEventHandler |
iEventHandler implementation. More... | |
Protected Methods | |
virtual void | SetKeyState (int iKey, bool iDown) |
Set key state. More... | |
Protected Attributes | |
csArray< bool > | KeyState |
Key state array. More... |
Keyboard driver should generate events and put them into an event queue. Also it tracks the current state of all keys.
Definition at line 65 of file csutil/csinput.h.
|
Initialize keyboard interface.
|
|
Destructor.
|
|
Call this routine to add a key down/up event to queue.
Implements iKeyboardDriver. |
|
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. Implements iKeyboardDriver. |
|
Application lost focus.
Implements csInputDriver. Definition at line 99 of file csutil/csinput.h. References Reset. |
|
Call to release all key down flags.
Implements iKeyboardDriver. Referenced by LostFocus. |
|
Set key state. For example SetKey (CSKEY_UP, true). Called automatically by do_press and do_release. |
|
Key state array.
Definition at line 69 of file csutil/csinput.h. |
|
iEventHandler implementation.
|