Class AdvancedXboxButtonTrigger
java.lang.Object
org.wpilib.command2.button.Trigger
xbot.common.controls.sensors.buttons.AdvancedTrigger
xbot.common.controls.sensors.buttons.AdvancedXboxButtonTrigger
- All Implemented Interfaces:
BooleanSupplier
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionorg.wpilib.driverstation.XboxController.Buttonfinal HashMap<AdvancedXboxButtonTrigger.ButtonTriggerType, org.wpilib.command2.Command> Fields inherited from class AdvancedTrigger
supplier -
Constructor Summary
ConstructorsModifierConstructorDescriptionAdvancedXboxButtonTrigger(XXboxController controller, org.wpilib.driverstation.XboxController.Button buttonName) protectedAdvancedXboxButtonTrigger(XXboxController controller, org.wpilib.driverstation.XboxController.Button buttonName, BooleanSupplier supplier) -
Method Summary
Methods inherited from class AdvancedTrigger
getInverted, setInvertedMethods inherited from class org.wpilib.command2.button.Trigger
and, debounce, debounce, getAsBoolean, multiPress, negate, onChange, or, toggleOnFalse, toggleOnTrue, whileFalse
-
Field Details
-
buttonName
public org.wpilib.driverstation.XboxController.Button buttonName -
triggeredCommands
public final HashMap<AdvancedXboxButtonTrigger.ButtonTriggerType, org.wpilib.command2.Command> triggeredCommands
-
-
Constructor Details
-
AdvancedXboxButtonTrigger
public AdvancedXboxButtonTrigger(XXboxController controller, org.wpilib.driverstation.XboxController.Button buttonName) -
AdvancedXboxButtonTrigger
protected AdvancedXboxButtonTrigger(XXboxController controller, org.wpilib.driverstation.XboxController.Button buttonName, BooleanSupplier supplier)
-
-
Method Details
-
onTrue
public org.wpilib.command2.button.Trigger onTrue(org.wpilib.command2.Command command) - Overrides:
onTruein classorg.wpilib.command2.button.Trigger
-
onFalse
public org.wpilib.command2.button.Trigger onFalse(org.wpilib.command2.Command command) - Overrides:
onFalsein classorg.wpilib.command2.button.Trigger
-
whileTrue
public org.wpilib.command2.button.Trigger whileTrue(org.wpilib.command2.Command command) - Overrides:
whileTruein classorg.wpilib.command2.button.Trigger
-