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

public class JoystickTrigger extends Trigger
A Trigger wrapper for Joystick buttons.
  • 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.