|
RoboJDETM v2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PushButton
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 |
---|
boolean isPressed()
void waitPressed()
Implementing classes should sleep rather than hog the CPU while waiting for the button to be released.
void waitReleased()
Implementing classes should sleep rather than hog the CPU while waiting for the button to be released.
|
RoboJDETM v2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |