Button |
Button.cancelWhenPressed(Command command) |
Cancels the command when the button is pressed.
|
Button |
Button.toggleWhenPressed(Command command) |
Toggles the command whenever the button is pressed (on then off then on).
|
Button |
Button.toggleWhenPressed(Command command,
boolean interruptible) |
Toggles the command whenever the button is pressed (on then off then on).
|
Button |
Button.whenHeld(Command command) |
Starts the given command when the button is first pressed, and cancels it when it is released,
but does not start it again if it ends or is otherwise interrupted.
|
Button |
Button.whenHeld(Command command,
boolean interruptible) |
Starts the given command when the button is first pressed, and cancels it when it is released,
but does not start it again if it ends or is otherwise interrupted.
|
Button |
Button.whenPressed(Command command) |
Starts the given command whenever the button is newly pressed.
|
Button |
Button.whenPressed(Command command,
boolean interruptible) |
Starts the given command whenever the button is newly pressed.
|
Button |
Button.whenPressed(java.lang.Runnable toRun) |
Runs the given runnable whenever the button is newly pressed.
|
Button |
Button.whenReleased(Command command) |
Starts the command when the button is released.
|
Button |
Button.whenReleased(Command command,
boolean interruptible) |
Starts the command when the button is released.
|
Button |
Button.whenReleased(java.lang.Runnable toRun) |
Runs the given runnable when the button is released.
|
Button |
Button.whileHeld(Command command) |
Constantly starts the given command while the button is held.
|
Button |
Button.whileHeld(Command command,
boolean interruptible) |
Constantly starts the given command while the button is held.
|
Button |
Button.whileHeld(java.lang.Runnable toRun) |
Constantly runs the given runnable while the button is held.
|