|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.input.event.InputEvent
com.jme3.input.event.KeyInputEvent
public class KeyInputEvent
Keyboard key event.
Field Summary |
---|
Fields inherited from class com.jme3.input.event.InputEvent |
---|
consumed, time |
Constructor Summary | |
---|---|
KeyInputEvent(int keyCode,
char keyChar,
boolean pressed,
boolean repeating)
|
Method Summary | |
---|---|
char |
getKeyChar()
Returns the key character. |
int |
getKeyCode()
The key code. |
boolean |
isPressed()
Returns true if this event is key press, false is it was a key release. |
boolean |
isReleased()
Returns true if this event is a key release, false if it was a key press. |
boolean |
isRepeating()
Returns true if this event is a repeat event. |
java.lang.String |
toString()
|
Methods inherited from class com.jme3.input.event.InputEvent |
---|
getTime, isConsumed, setConsumed, setTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public KeyInputEvent(int keyCode, char keyChar, boolean pressed, boolean repeating)
Method Detail |
---|
public char getKeyChar()
public int getKeyCode()
See KEY_*** constants in KeyInput
.
public boolean isPressed()
public boolean isRepeating()
public boolean isReleased()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |