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 Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionGameCube controller.PS3.PS4.PS5.Standard.Steam Controller.Switch Joycon Left.Switch Joycon Pair.Switch Joycon Right.Switch Pro.Unknown.Xbox 360.Xbox One. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic GenericHID.HIDTypeof(int value) Creates an HIDType with the given value.static GenericHID.HIDTypeReturns 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
-
UNKNOWN
Unknown. -
STANDARD
Standard. -
XBOX_360
Xbox 360. -
XBOX_ONE
Xbox One. -
PS3
PS3. -
PS4
PS4. -
PS5
PS5. -
SWITCH_PRO
Switch Pro. -
SWITCH_JOYCON_LEFT
Switch Joycon Left. -
SWITCH_JOYCON_RIGHT
Switch Joycon Right. -
SWITCH_JOYCON_PAIR
Switch Joycon Pair. -
GAMECUBE
GameCube controller. -
STEAM
Steam Controller.
-
-
Field Details
-
value
public final int valueHIDType 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.
-