|
RoboJDETM v1.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Generic interface to a push button.
| Method Summary | |
boolean |
isPressed()
Gets the current state of the button. |
void |
waitPressed()
Waits for the button to be pressed. |
void |
waitReleased()
Waits for the button to be released. |
| Method Detail |
public boolean isPressed()
public void waitPressed()
Implementing classes should sleep rather than hog the CPU while waiting for the button to be released.
public void waitReleased()
Implementing classes should sleep rather than hog the CPU while waiting for the button to be released.
|
RoboJDETM v1.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||