Package lejos.hardware
Interface Key
-
- All Known Implementing Classes:
RemoteKey,RemoteRequestKey
public interface Key
-
-
Field Summary
Fields Modifier and Type Field Description static intDOWNstatic intENTERstatic intESCAPEstatic intKEY_PRESSEDstatic intKEY_PRESSED_AND_RELEASEDstatic intKEY_RELEASEDstatic intLEFTstatic intRIGHTstatic intUP
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddKeyListener(KeyListener listener)intgetId()java.lang.StringgetName()booleanisDown()booleanisUp()voidsimulateEvent(int event)voidwaitForPress()voidwaitForPressAndRelease()
-
-
-
Field Detail
-
UP
static final int UP
- See Also:
- Constant Field Values
-
ENTER
static final int ENTER
- See Also:
- Constant Field Values
-
DOWN
static final int DOWN
- See Also:
- Constant Field Values
-
RIGHT
static final int RIGHT
- See Also:
- Constant Field Values
-
LEFT
static final int LEFT
- See Also:
- Constant Field Values
-
ESCAPE
static final int ESCAPE
- See Also:
- Constant Field Values
-
KEY_RELEASED
static final int KEY_RELEASED
- See Also:
- Constant Field Values
-
KEY_PRESSED
static final int KEY_PRESSED
- See Also:
- Constant Field Values
-
KEY_PRESSED_AND_RELEASED
static final int KEY_PRESSED_AND_RELEASED
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
int getId()
-
isDown
boolean isDown()
-
isUp
boolean isUp()
-
waitForPress
void waitForPress()
-
waitForPressAndRelease
void waitForPressAndRelease()
-
addKeyListener
void addKeyListener(KeyListener listener)
-
simulateEvent
void simulateEvent(int event)
-
getName
java.lang.String getName()
-
-