Class JoystickButton


public class JoystickButton
extends Button
A Button that gets its state from a GenericHID.
  • Constructor Details

    • JoystickButton

      public JoystickButton​(GenericHID joystick, int buttonNumber)
      Creates a joystick button for triggering commands.
      Parameters:
      joystick - The GenericHID object that has the button (e.g. Joystick, KinectStick, etc)
      buttonNumber - The button number (see GenericHID.getRawButton(int)
  • Method Details

    • get

      public boolean get()
      Gets the value of the joystick button.
      Overrides:
      get in class Trigger
      Returns:
      The value of the joystick button