CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

iKeyboardDriver Struct Reference
[Event handling]

Generic Keyboard Driver. More...

#include <csinput.h>

Inheritance diagram for iKeyboardDriver:

iBase csKeyboardDriver List of all members.

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...


Detailed Description

Generic Keyboard Driver.

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.


Member Function Documentation

virtual void iKeyboardDriver::DoKey int    iKey,
int    iChar,
bool    iDown
[pure virtual]
 

Call to add a key down/up event to queue.

Implemented in csKeyboardDriver.

virtual bool iKeyboardDriver::GetKeyState int    iKey [pure virtual]
 

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.

virtual void iKeyboardDriver::Reset   [pure virtual]
 

Call to release all key down flags (when focus switches from application window, for example).

Implemented in csKeyboardDriver.


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.2.14