Class VirtualTrigger
java.lang.Object
edu.wpi.first.wpilibj2.command.button.Trigger
xbot.common.controls.sensors.buttons.AdvancedTrigger
xbot.common.controls.sensors.buttons.VirtualTrigger
- All Implemented Interfaces:
BooleanSupplier
A virtual button under program control that can be used for creating chords.
This is useful to repurpose buttons in multiple "modes".
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionVirtualTrigger
(boolean defaultPressed) VirtualTrigger
(SettableBooleanSuppler supplier) -
Method Summary
Methods inherited from class xbot.common.controls.sensors.buttons.AdvancedTrigger
getInverted, setInverted
Methods inherited from class edu.wpi.first.wpilibj2.command.button.Trigger
and, debounce, debounce, getAsBoolean, negate, onChange, onFalse, onTrue, or, toggleOnFalse, toggleOnTrue, whileFalse, whileTrue
-
Constructor Details
-
VirtualTrigger
@AssistedInject public VirtualTrigger(@Assisted boolean defaultPressed) -
VirtualTrigger
-
-
Method Details
-
set
public void set(boolean value) -
toggle
public void toggle()
-