Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

iKeyboardDriver Struct Reference

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

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


Detailed Description

Generic Keyboard Driver.<.

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


Member Function Documentation

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.

Reimplemented in csKeyboardDriver.


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000