Class WsJoystickButton


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

      • WsJoystickButton

        public WsJoystickButton​(java.lang.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 Detail

      • readRawValue

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