public interface Keyboard
Modifier and Type | Field and Description |
---|---|
static int |
ALTFIRE |
static int |
DOWN |
static int |
ESCAPE |
static int |
FIRE |
static int |
LEFT |
static int |
RIGHT |
static int |
SPACE |
static int |
UP |
Modifier and Type | Method and Description |
---|---|
int |
getKeyCode()
Get the current pressed key code.
|
char |
getKeyName()
Get the current pressed key name.
|
boolean |
isPressed(int key)
Check if the key is currently pressed.
|
static final int UP
static final int DOWN
static final int RIGHT
static final int LEFT
static final int FIRE
static final int ALTFIRE
static final int ESCAPE
static final int SPACE
boolean isPressed(int key)
key
- key to check.int getKeyCode()
char getKeyName()