Class AxisButton


  • public class AxisButton
    extends Object
    A button based on a joystick axis. This can be used to emulate a button using a trigger or joystick.
    • Constructor Detail

      • AxisButton

        public AxisButton​(@NotNull
                          @NotNull edu.wpi.first.wpilibj.GenericHID stick,
                          double threshold,
                          int axis)
        Constructs an AxisButton.
        Parameters:
        stick - The axis's joystick
        axis - The axis to use as a button
        threshold - The threshold for the button to be triggered
        Throws:
        NullPointerException - If stick is null.
    • Method Detail

      • get

        public boolean get()