|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMovementKeys
Interface that represents a set of movement keys. Key names are the virtual key names without the leading "VK_". See the Java documentation under "KeyEvent". To change a key's behavior from being initiated from being pressed to being released, simply change the name returned by getXXKey() to "released "+keyname, e.g. return "released END" for getStopKey(). See KeyStroke.getKeyStroke(String s) for more information.
Field Summary | |
---|---|
static IMovementKeys |
ARROWSEND
A predefined set of movement keys where the arrow keys ("UP", "DOWN", "LEFT" and "RIGHT") are associated with their respective directions and the "END" key is associated with stopping. |
static IMovementKeys |
WASDX
A predefined set of movement keys where "W" = up, "A" = left, "S" = stop, "D" = right, and "X"=down. |
Method Summary | |
---|---|
String |
getDownKey()
Get the name of the key that controls downward movement. |
String |
getLeftKey()
Get the name of the key that controls leftward movement. |
String |
getRightKey()
Get the name of the key that controls right ward movement. |
String |
getStopKey()
Get the name of the key that stops the movement. |
String |
getUpKey()
Get the name of the key that controls upward movement. |
Field Detail |
---|
static final IMovementKeys ARROWSEND
static final IMovementKeys WASDX
Method Detail |
---|
String getUpKey()
String getDownKey()
String getLeftKey()
String getRightKey()
String getStopKey()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |