public enum ControllerType extends java.lang.Enum<ControllerType>
Controller types supported by mini2Dx| Enum Constant and Description |
|---|
OUYA |
PS3 |
PS4 |
UNKNOWN |
XBOX_360 |
XBOX_ONE |
| Modifier and Type | Method and Description |
|---|---|
static ControllerType |
fromFriendlyString(java.lang.String value) |
java.lang.String |
toFriendlyString() |
static ControllerType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ControllerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ControllerType UNKNOWN
public static final ControllerType OUYA
public static final ControllerType PS3
public static final ControllerType PS4
public static final ControllerType XBOX_360
public static final ControllerType XBOX_ONE
public static ControllerType[] values()
for (ControllerType c : ControllerType.values()) System.out.println(c);
public static ControllerType 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 ControllerType fromFriendlyString(java.lang.String value)