Class WsJSButtonInputConfig

    • Constructor Summary

      Constructors 
      Constructor Description
      WsJSButtonInputConfig​(int p_port, int p_button)
      Construct the joystick button config
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getButton()
      Returns the joystick button index.
      int getPort()
      Returns the controller port number from the driver station.
      java.lang.String toString()
      Builds a JSON String describing the joystick button config.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • WsJSButtonInputConfig

        public WsJSButtonInputConfig​(int p_port,
                                     int p_button)
        Construct the joystick button config
        Parameters:
        p_port - Driver station controller port number.
        p_button - Joystick button index.
    • Method Detail

      • getPort

        public int getPort()
        Returns the controller port number from the driver station.
        Returns:
        The controller port number.
      • getButton

        public int getButton()
        Returns the joystick button index.
        Returns:
        The joystick button index.
      • toString

        public java.lang.String toString()
        Builds a JSON String describing the joystick button config.
        Overrides:
        toString in class java.lang.Object
        Returns:
        Port number and button number.