Class JoystickButton

    • Constructor Detail

      • JoystickButton

        public JoystickButton​(GenericHID joystick,
                              int buttonNumber)
        Create 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 Detail

      • get

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