Class AdvancedXboxAxisTrigger
java.lang.Object
org.wpilib.command2.button.Trigger
xbot.common.controls.sensors.buttons.AdvancedTrigger
xbot.common.controls.sensors.buttons.AdvancedXboxAxisTrigger
- All Implemented Interfaces:
BooleanSupplier
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal HashMap<AdvancedXboxButtonTrigger.ButtonTriggerType, org.wpilib.command2.Command> Fields inherited from class AdvancedTrigger
supplier -
Constructor Summary
ConstructorsConstructorDescriptionAdvancedXboxAxisTrigger(XXboxController controller, XXboxController.XboxAxisButton buttonName, double threshold) -
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
-
triggeredCommands
public final HashMap<AdvancedXboxButtonTrigger.ButtonTriggerType, org.wpilib.command2.Command> triggeredCommands
-
-
Constructor Details
-
AdvancedXboxAxisTrigger
public AdvancedXboxAxisTrigger(XXboxController controller, XXboxController.XboxAxisButton buttonName, double threshold)
-
-
Method Details
-
getController
-
getAxisButtonName
-
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
-