public enum GamePadType extends java.lang.Enum<GamePadType>
| Enum Constant and Description |
|---|
PS4 |
SWITCH_DUAL_JOYCON |
SWITCH_JOYCON_L |
SWITCH_JOYCON_R |
UNKNOWN |
XBOX |
| Modifier and Type | Method and Description |
|---|---|
static GamePadType |
fromFriendlyString(java.lang.String value) |
java.lang.String |
toFriendlyString() |
static GamePadType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GamePadType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GamePadType UNKNOWN
public static final GamePadType SWITCH_DUAL_JOYCON
public static final GamePadType SWITCH_JOYCON_L
public static final GamePadType SWITCH_JOYCON_R
public static final GamePadType PS4
public static final GamePadType XBOX
public static GamePadType[] values()
for (GamePadType c : GamePadType.values()) System.out.println(c);
public static GamePadType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String toFriendlyString()
public static GamePadType fromFriendlyString(java.lang.String value)