Class JoystickTrigger
java.lang.Object
io.github.tigerbotics7125.tigerlib.input.trigger.Trigger
io.github.tigerbotics7125.tigerlib.input.trigger.JoystickTrigger
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable,BooleanSupplier
A
Trigger wrapper for Joystick buttons.-
Nested Class Summary
Nested classes/interfaces inherited from class io.github.tigerbotics7125.tigerlib.input.trigger.Trigger
Trigger.ActivationCondition -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JoystickTrigger
public JoystickTrigger(edu.wpi.first.wpilibj.GenericHID joystick, int button) - Parameters:
joystick- The HID device to read the button from.button- The button index to read from.
-