|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lejos.nxt.Button
public class Button
PC emulation of the Button class
Field Summary | |
---|---|
static Button |
ENTER
The Enter button. |
static Button |
ESCAPE
The Escape button. |
static int |
ID_ENTER
|
static int |
ID_ESCAPE
|
static int |
ID_LEFT
|
static int |
ID_RIGHT
|
static Button |
LEFT
* The Left button. |
static Button |
RIGHT
The Right button. |
Method Summary | |
---|---|
boolean |
isDown()
|
boolean |
isPressed()
Deprecated. use isDown() instead |
static int |
readButtons()
|
static int |
waitForAnyPress()
|
static int |
waitForAnyPress(int timeout)
|
void |
waitForPressAndRelease()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ID_ENTER
public static final int ID_LEFT
public static final int ID_RIGHT
public static final int ID_ESCAPE
public static final Button ENTER
public static final Button LEFT
public static final Button RIGHT
public static final Button ESCAPE
Method Detail |
---|
@Deprecated public boolean isPressed()
isDown()
instead
public boolean isDown()
public void waitForPressAndRelease()
public static int waitForAnyPress()
public static int waitForAnyPress(int timeout)
public static int readButtons()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |