Enum Class Gamepad.Mapping
- All Implemented Interfaces:
Serializable, Comparable<Gamepad.Mapping>, Constable
- Enclosing class:
Gamepad
Which Driver Station's controller layout to read (see
GamepadLayout).
NI_DS is the default because the 2026 FMS only takes the 2026 NI Driver Station.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFollowGamepadLayout.detect(GenericHID), starting fromNI_DSand keeping the last recognised layout.The 2026 NI FRC Driver Station (the legacy XInput order, D-pad on the POV).The 2027 WPILib Driver Station (the 2027Gamepadorder, D-pad as buttons). -
Method Summary
Modifier and TypeMethodDescriptionstatic Gamepad.MappingReturns the enum constant of this class with the specified name.static Gamepad.Mapping[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NI_DS
The 2026 NI FRC Driver Station (the legacy XInput order, D-pad on the POV). -
WPILIB_DS
The 2027 WPILib Driver Station (the 2027Gamepadorder, D-pad as buttons). -
AUTO
FollowGamepadLayout.detect(GenericHID), starting fromNI_DSand keeping the last recognised layout. The detection is a heuristic; bench-test it before using this.
-
-
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
-