public interface Key
Modifier and Type | Field and Description |
---|---|
static int |
DOWN |
static int |
ENTER |
static int |
ESCAPE |
static int |
KEY_PRESSED |
static int |
KEY_PRESSED_AND_RELEASED |
static int |
KEY_RELEASED |
static int |
LEFT |
static int |
RIGHT |
static int |
UP |
Modifier and Type | Method and Description |
---|---|
void |
addKeyListener(KeyListener listener) |
int |
getId() |
java.lang.String |
getName() |
boolean |
isDown() |
boolean |
isUp() |
void |
simulateEvent(int event) |
void |
waitForPress() |
void |
waitForPressAndRelease() |
static final int UP
static final int ENTER
static final int DOWN
static final int RIGHT
static final int LEFT
static final int ESCAPE
static final int KEY_RELEASED
static final int KEY_PRESSED
static final int KEY_PRESSED_AND_RELEASED
int getId()
boolean isDown()
boolean isUp()
void waitForPress()
void waitForPressAndRelease()
void addKeyListener(KeyListener listener)
void simulateEvent(int event)
java.lang.String getName()