Class WsJoystickButton


public class WsJoystickButton extends DigitalInput
Reads a controller button.
  • Constructor Details

    • WsJoystickButton

      public WsJoystickButton(String p_name, int p_port, int p_buttonIndex)
      Construct the button.
      Parameters:
      p_name - Descriptive name of the button.
      p_port - Controller port as defined in the driver station.
      p_buttonIndex - Controller button index.
  • Method Details

    • readRawValue

      protected boolean readRawValue()
      Reads the value from the button.
      Specified by:
      readRawValue in class DigitalInput
      Returns:
      Raw button value.