public class InternalButton extends Button
Trigger.ButtonScheduler
Constructor and Description |
---|
InternalButton()
Creates an InternalButton that is not inverted.
|
InternalButton(boolean inverted)
Creates an InternalButton which is inverted depending on the input.
|
Modifier and Type | Method and Description |
---|---|
boolean |
get()
Returns whether or not the trigger is active.
|
void |
setInverted(boolean inverted) |
void |
setPressed(boolean pressed) |
cancelWhenPressed, toggleWhenPressed, whenPressed, whenReleased, whileHeld
cancelWhenActive, getSmartDashboardType, getTable, initTable, toggleWhenActive, whenActive, whenInactive, whileActive
public InternalButton()
public InternalButton(boolean inverted)
inverted
- if false, then this button is pressed when set to true, otherwise it is pressed
when set to false.public void setInverted(boolean inverted)
public void setPressed(boolean pressed)