DOWN, ENTER, ESCAPE, KEY_PRESSED, KEY_PRESSED_AND_RELEASED, KEY_RELEASED, LEFT, RIGHT, UP
Constructor and Description |
---|
RemoteKey(RMIKey key,
RemoteKeys keys,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
addKeyListener(KeyListener listener) |
void |
callListeners() |
int |
getId() |
java.lang.String |
getName() |
boolean |
isDown() |
boolean |
isUp() |
void |
simulateEvent(int event) |
void |
waitForPress() |
void |
waitForPressAndRelease() |
public RemoteKey(RMIKey key, RemoteKeys keys, java.lang.String name)
public void waitForPress()
waitForPress
in interface Key
public void waitForPressAndRelease()
waitForPressAndRelease
in interface Key
public void addKeyListener(KeyListener listener)
addKeyListener
in interface Key
public void simulateEvent(int event)
simulateEvent
in interface Key
public void callListeners()