|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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".
Method Summary | |
iKeyComposer |
createKeyComposer()
Return an instance of the keyboard composer. |
void |
doKey(int codeRaw,
int codeCooked,
boolean iDown)
Call this routine to add a key down/up event to queue. |
void |
doKey(int codeRaw,
int codeCooked,
boolean iDown,
boolean autoRepeat)
Call this routine to add a key down/up event to queue. |
void |
doKey(int codeRaw,
int codeCooked,
boolean iDown,
boolean autoRepeat,
int charType)
Call this routine to add a key down/up event to queue. |
boolean |
getKeyState(int codeRaw)
Query the state of a key. |
int |
getModifierState(int codeRaw)
Get the current state of the modifiers. |
void |
reset()
Call to release all key down flags (when focus switches from application window, for example);. |
Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase |
decRef, getName, getRefCount, getVersion, incRef, queryInterface, queryInterfaceSafe |
Methods inherited from interface crystalspace.jbind.interfaces.iPointer |
changePointer, getPointer, isMemoryOwner, setMemoryOwner |
Method Detail |
public iKeyComposer createKeyComposer()
public void doKey(int codeRaw, int codeCooked, boolean iDown)
codeRaw
- codeCooked
- iDown
- public void doKey(int codeRaw, int codeCooked, boolean iDown, boolean autoRepeat)
codeRaw
- codeCooked
- iDown
- autoRepeat
- public void doKey(int codeRaw, int codeCooked, boolean iDown, boolean autoRepeat, int charType)
codeRaw
- codeCooked
- iDown
- autoRepeat
- charType
- public boolean getKeyState(int codeRaw)
codeRaw
-
public int getModifierState(int codeRaw)
codeRaw
-
public void reset()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |