Package org.team1540.rooster.triggers
Class AxisButton
- java.lang.Object
-
- org.team1540.rooster.triggers.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 Summary
Constructors Constructor Description AxisButton(@NotNull edu.wpi.first.wpilibj.GenericHID stick, double threshold, int axis)
Constructs anAxisButton
.
-
-
-
Constructor Detail
-
AxisButton
public AxisButton(@NotNull @NotNull edu.wpi.first.wpilibj.GenericHID stick, double threshold, int axis)
Constructs anAxisButton
.- Parameters:
stick
- The axis's joystickaxis
- The axis to use as a buttonthreshold
- The threshold for the button to be triggered- Throws:
NullPointerException
- Ifstick
isnull
.
-
-