|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.threed.jpct.util.KeyState
A KeyState is similar to the AWT KeyEvent and will be returned by the poll()-method of the KeyMapper.
Field Summary | |
static KeyState |
NONE
This will be returned by poll() if the queue is empty. |
static boolean |
PRESSED
The key has been pressed |
static boolean |
RELEASED
The key has been released |
Method Summary | |
char |
getChar()
The key's character for the key that has been pressed or release. |
int |
getKeyCode()
The key code for the key that has been pressed or release. |
boolean |
getState()
The state of the key of this KeyState, i.e. pressed or released. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final boolean PRESSED
public static final boolean RELEASED
public static final KeyState NONE
Method Detail |
public boolean getState()
public int getKeyCode()
KeyEvent
public char getChar()
KeyEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |