Package edu.wpi.first.wpilibj
Enum Class GenericHID.HIDType
- All Implemented Interfaces:
Serializable
,Comparable<GenericHID.HIDType>
,Constable
- Enclosing class:
- GenericHID
USB HID interface type.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionHID1stPerson.HIDDriving.HIDFlight.HIDGamepad.HIDJoystick.Unknown.XInputArcadePad.XInputArcadeStick.XInputDancePad.XInputDrumKit.XInputFlightStick.XInputGamepad.XInputGuitar.XInputGuitar2.XInputGuitar3.XInputUnknown.XInputWheel. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic GenericHID.HIDType
of
(int value) Creates an HIDType with the given value.static GenericHID.HIDType
Returns the enum constant of this class with the specified name.static GenericHID.HIDType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
kUnknown
Unknown. -
kXInputUnknown
XInputUnknown. -
kXInputGamepad
XInputGamepad. -
kXInputWheel
XInputWheel. -
kXInputArcadeStick
XInputArcadeStick. -
kXInputFlightStick
XInputFlightStick. -
kXInputDancePad
XInputDancePad. -
kXInputGuitar
XInputGuitar. -
kXInputGuitar2
XInputGuitar2. -
kXInputDrumKit
XInputDrumKit. -
kXInputGuitar3
XInputGuitar3. -
kXInputArcadePad
XInputArcadePad. -
kHIDJoystick
HIDJoystick. -
kHIDGamepad
HIDGamepad. -
kHIDDriving
HIDDriving. -
kHIDFlight
HIDFlight. -
kHID1stPerson
HID1stPerson.
-
-
Field Details
-
value
HIDType value.
-
-
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
-
of
Creates an HIDType with the given value.- Parameters:
value
- HIDType's value.- Returns:
- HIDType with the given value.
-