Package org.wildstang.sample.robot
Enum Class WsInputs
- All Implemented Interfaces:
Serializable,Comparable<WsInputs>,Constable,Inputs
Input mappings are stored here.
We currently use two Xbox controller for input, driver and operator, 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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionget()Returns the actual Input object from the InputManagerReturns the config of Input for the enumeration.getName()Returns the name mapped to the Input.static WsInputsReturns the enum constant of this class with the specified name.static WsInputs[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DRIVER_LEFT_JOYSTICK_Y
-
DRIVER_LEFT_JOYSTICK_X
-
DRIVER_RIGHT_JOYSTICK_Y
-
DRIVER_RIGHT_JOYSTICK_X
-
DRIVER_DPAD_DOWN
-
DRIVER_DPAD_LEFT
-
DRIVER_DPAD_RIGHT
-
DRIVER_DPAD_UP
-
DRIVER_FACE_DOWN
-
DRIVER_FACE_LEFT
-
DRIVER_FACE_RIGHT
-
DRIVER_FACE_UP
-
DRIVER_LEFT_SHOULDER
-
DRIVER_RIGHT_SHOULDER
-
DRIVER_SELECT
-
DRIVER_START
-
DRIVER_LEFT_JOYSTICK_BUTTON
-
DRIVER_RIGHT_JOYSTICK_BUTTON
-
DRIVER_LEFT_TRIGGER
-
DRIVER_RIGHT_TRIGGER
-
OPERATOR_LEFT_JOYSTICK_Y
-
OPERATOR_LEFT_JOYSTICK_X
-
OPERATOR_RIGHT_JOYSTICK_Y
-
OPERATOR_RIGHT_JOYSTICK_X
-
OPERATOR_DPAD_DOWN
-
OPERATOR_DPAD_LEFT
-
OPERATOR_DPAD_RIGHT
-
OPERATOR_DPAD_UP
-
OPERATOR_FACE_DOWN
-
OPERATOR_FACE_LEFT
-
OPERATOR_FACE_RIGHT
-
OPERATOR_FACE_UP
-
OPERATOR_LEFT_SHOULDER
-
OPERATOR_RIGHT_SHOULDER
-
OPERATOR_SELECT
-
OPERATOR_START
-
OPERATOR_LEFT_JOYSTICK_BUTTON
-
OPERATOR_RIGHT_JOYSTICK_BUTTON
-
OPERATOR_LEFT_TRIGGER
-
OPERATOR_RIGHT_TRIGGER
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getName
Returns the name mapped to the Input. -
getConfig
Returns the config of Input for the enumeration. -
get
Returns the actual Input object from the InputManager- Returns:
- The corresponding input.
-