lejos.nxt
Class Button

java.lang.Object
  extended by lejos.nxt.Button

public class Button
extends java.lang.Object

PC emulation of the Button class

Author:
Lawrie Griffiths

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

ID_ENTER

public static final int ID_ENTER
See Also:
Constant Field Values

ID_LEFT

public static final int ID_LEFT
See Also:
Constant Field Values

ID_RIGHT

public static final int ID_RIGHT
See Also:
Constant Field Values

ID_ESCAPE

public static final int ID_ESCAPE
See Also:
Constant Field Values

ENTER

public static final Button ENTER
The Enter button.


LEFT

public static final Button LEFT
* The Left button.


RIGHT

public static final Button RIGHT
The Right button.


ESCAPE

public static final Button ESCAPE
The Escape button.

Method Detail

isPressed

@Deprecated
public boolean isPressed()
Deprecated. use isDown() instead


isDown

public boolean isDown()

waitForPressAndRelease

public void waitForPressAndRelease()

waitForAnyPress

public static int waitForAnyPress()

waitForAnyPress

public static int waitForAnyPress(int timeout)

readButtons

public static int readButtons()