public static enum Input.Peripheral extends Enum<Input.Peripheral>
Input.isPeripheralAvailable(Peripheral)
.Enum Constant and Description |
---|
Accelerometer |
Compass |
Gyroscope |
HardwareKeyboard |
MultitouchScreen |
OnscreenKeyboard |
RotationVector |
Vibrator |
Modifier and Type | Method and Description |
---|---|
static Input.Peripheral |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Input.Peripheral[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Input.Peripheral HardwareKeyboard
public static final Input.Peripheral OnscreenKeyboard
public static final Input.Peripheral MultitouchScreen
public static final Input.Peripheral Accelerometer
public static final Input.Peripheral Compass
public static final Input.Peripheral Vibrator
public static final Input.Peripheral Gyroscope
public static final Input.Peripheral RotationVector
public static Input.Peripheral[] values()
for (Input.Peripheral c : Input.Peripheral.values()) System.out.println(c);
public static Input.Peripheral 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 nullCopyright © 2017. All rights reserved.