public enum XInputBatteryType extends Enum<XInputBatteryType>
| Enum Constant and Description |
|---|
ALKALINE |
DISCONNECTED |
NIMH |
UNKNOWN |
WIRED |
| Modifier and Type | Method and Description |
|---|---|
static XInputBatteryType |
fromNative(byte value)
Retrieves the appropriate enum value from the native value.
|
static XInputBatteryType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static XInputBatteryType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XInputBatteryType DISCONNECTED
public static final XInputBatteryType WIRED
public static final XInputBatteryType ALKALINE
public static final XInputBatteryType NIMH
public static final XInputBatteryType UNKNOWN
public static XInputBatteryType[] values()
for (XInputBatteryType c : XInputBatteryType.values()) System.out.println(c);
public static XInputBatteryType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static XInputBatteryType fromNative(byte value)
value - the native valueIllegalArgumentException - if the given native value does not correspond
to an enum valueCopyright © 2018. All rights reserved.