Enum WSInputs

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<WSInputs>, Inputs

    public enum WSInputs
    extends java.lang.Enum<WSInputs>
    implements Inputs
    Input mappings are stored here. We currently use two Xbox controller for input, driver and manipulator, plus additional sensors. Below each button, axis, and sensor is enumerated with their appropriated IDs. Unclaimed inputs should have a name representing the input. Claim inputs by changing the name to represent the output.
    • Enum Constant Detail

      • DRIVER_LEFT_JOYSTICK_Y

        public static final WSInputs DRIVER_LEFT_JOYSTICK_Y
      • DRIVER_LEFT_JOYSTICK_X

        public static final WSInputs DRIVER_LEFT_JOYSTICK_X
      • DRIVER_RIGHT_JOYSTICK_Y

        public static final WSInputs DRIVER_RIGHT_JOYSTICK_Y
      • DRIVER_RIGHT_JOYSTICK_X

        public static final WSInputs DRIVER_RIGHT_JOYSTICK_X
      • DRIVER_DPAD_DOWN

        public static final WSInputs DRIVER_DPAD_DOWN
      • DRIVER_DPAD_LEFT

        public static final WSInputs DRIVER_DPAD_LEFT
      • DRIVER_DPAD_RIGHT

        public static final WSInputs DRIVER_DPAD_RIGHT
      • DRIVER_DPAD_UP

        public static final WSInputs DRIVER_DPAD_UP
      • DRIVER_FACE_DOWN

        public static final WSInputs DRIVER_FACE_DOWN
      • DRIVER_FACE_LEFT

        public static final WSInputs DRIVER_FACE_LEFT
      • DRIVER_FACE_RIGHT

        public static final WSInputs DRIVER_FACE_RIGHT
      • DRIVER_FACE_UP

        public static final WSInputs DRIVER_FACE_UP
      • DRIVER_LEFT_SHOULDER

        public static final WSInputs DRIVER_LEFT_SHOULDER
      • DRIVER_RIGHT_SHOULDER

        public static final WSInputs DRIVER_RIGHT_SHOULDER
      • DRIVER_SELECT

        public static final WSInputs DRIVER_SELECT
      • DRIVER_START

        public static final WSInputs DRIVER_START
      • DRIVER_LEFT_JOYSTICK_BUTTON

        public static final WSInputs DRIVER_LEFT_JOYSTICK_BUTTON
      • DRIVER_RIGHT_JOYSTICK_BUTTON

        public static final WSInputs DRIVER_RIGHT_JOYSTICK_BUTTON
      • DRIVER_LEFT_TRIGGER

        public static final WSInputs DRIVER_LEFT_TRIGGER
      • DRIVER_RIGHT_TRIGGER

        public static final WSInputs DRIVER_RIGHT_TRIGGER
      • MANIPULATOR_LEFT_JOYSTICK_Y

        public static final WSInputs MANIPULATOR_LEFT_JOYSTICK_Y
      • MANIPULATOR_LEFT_JOYSTICK_X

        public static final WSInputs MANIPULATOR_LEFT_JOYSTICK_X
      • MANIPULATOR_RIGHT_JOYSTICK_Y

        public static final WSInputs MANIPULATOR_RIGHT_JOYSTICK_Y
      • MANIPULATOR_RIGHT_JOYSTICK_X

        public static final WSInputs MANIPULATOR_RIGHT_JOYSTICK_X
      • MANIPULATOR_DPAD_DOWN

        public static final WSInputs MANIPULATOR_DPAD_DOWN
      • MANIPULATOR_DPAD_LEFT

        public static final WSInputs MANIPULATOR_DPAD_LEFT
      • MANIPULATOR_DPAD_RIGHT

        public static final WSInputs MANIPULATOR_DPAD_RIGHT
      • MANIPULATOR_DPAD_UP

        public static final WSInputs MANIPULATOR_DPAD_UP
      • MANIPULATOR_FACE_DOWN

        public static final WSInputs MANIPULATOR_FACE_DOWN
      • MANIPULATOR_FACE_LEFT

        public static final WSInputs MANIPULATOR_FACE_LEFT
      • MANIPULATOR_FACE_RIGHT

        public static final WSInputs MANIPULATOR_FACE_RIGHT
      • MANIPULATOR_FACE_UP

        public static final WSInputs MANIPULATOR_FACE_UP
      • MANIPULATOR_LEFT_SHOULDER

        public static final WSInputs MANIPULATOR_LEFT_SHOULDER
      • MANIPULATOR_RIGHT_SHOULDER

        public static final WSInputs MANIPULATOR_RIGHT_SHOULDER
      • MANIPULATOR_SELECT

        public static final WSInputs MANIPULATOR_SELECT
      • MANIPULATOR_START

        public static final WSInputs MANIPULATOR_START
      • MANIPULATOR_LEFT_JOYSTICK_BUTTON

        public static final WSInputs MANIPULATOR_LEFT_JOYSTICK_BUTTON
      • MANIPULATOR_RIGHT_JOYSTICK_BUTTON

        public static final WSInputs MANIPULATOR_RIGHT_JOYSTICK_BUTTON
      • MANIPULATOR_LEFT_TRIGGER

        public static final WSInputs MANIPULATOR_LEFT_TRIGGER
      • MANIPULATOR_RIGHT_TRIGGER

        public static final WSInputs MANIPULATOR_RIGHT_TRIGGER
      • LL_TX

        public static final WSInputs LL_TX
      • LL_TY

        public static final WSInputs LL_TY
      • LL_TV

        public static final WSInputs LL_TV
    • Method Detail

      • values

        public static WSInputs[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (WSInputs c : WSInputs.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static WSInputs valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getName

        public java.lang.String getName()
        Returns the name mapped to the Input.
        Specified by:
        getName in interface Inputs
        Returns:
        Name mapped to the Input.
      • getConfig

        public InputConfig getConfig()
        Returns the config of Input for the enumeration.
        Specified by:
        getConfig in interface Inputs
        Returns:
        InputConfig of enumeration.
      • get

        public Input get()
        Returns the actual Input object from the InputManager
        Returns:
        The corresponding input.