|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jme.input.Input
com.jme.input.KeyInput
com.jme.input.dummy.DummyKeyInput
public class DummyKeyInput
DummyKeyInput simulates a Keyinput system, usable for Applications that can be headless or not.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
protected |
DummyKeyInput()
Constructor instantiates a new DummyKeyInput object, it does nothing at all. |
| Method Summary | |
|---|---|
void |
clear()
|
void |
clearKey(int keycode)
|
void |
destroy()
destroy nothing to destroy. |
int |
getKeyIndex(java.lang.String name)
getKeyIndex returns the value of the key name |
java.lang.String |
getKeyName(int key)
getKeyName returns the string representation of the key
code. |
boolean |
isKeyDown(int key)
This always returns false |
void |
update()
update The Dummy does nothing at all. |
| Methods inherited from class com.jme.input.KeyInput |
|---|
addListener, containsListener, destroyIfInitalized, get, getListeners, getProvider, isControlDown, isInited, isShiftDown, removeListener, removeListeners, setProvider, setProvider |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected DummyKeyInput()
DummyKeyInput object, it does nothing at all.
| Method Detail |
|---|
public boolean isKeyDown(int key)
isKeyDown in class KeyInputkey - the keycode to check for.
KeyInput.isKeyDown(int)public java.lang.String getKeyName(int key)
getKeyName returns the string representation of the key
code.
getKeyName in class KeyInputkey - the key code to check.
KeyInput.getKeyName(int)public int getKeyIndex(java.lang.String name)
getKeyIndex returns the value of the key name
getKeyIndex in class KeyInputname - the name of the key
public void update()
update The Dummy does nothing at all.
update in class KeyInputKeyInput.update()public void destroy()
destroy nothing to destroy.
destroy in class KeyInputKeyInput.destroy()public void clear()
clear in class KeyInputpublic void clearKey(int keycode)
clearKey in class KeyInput
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||