com.greenthrottle.gcs.api
Enum ControllerEvent.AnalogDataType
java.lang.Object
java.lang.Enum<ControllerEvent.AnalogDataType>
com.greenthrottle.gcs.api.ControllerEvent.AnalogDataType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ControllerEvent.AnalogDataType>
- Enclosing class:
- ControllerEvent
public static enum ControllerEvent.AnalogDataType
- extends java.lang.Enum<ControllerEvent.AnalogDataType>
Indicates type of analog event. X_DATA and Y_DATA are a value from -127...127
(with axis polarity matching the Cartesian plane)
| Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
INVALID
public static final ControllerEvent.AnalogDataType INVALID
X_MIN
public static final ControllerEvent.AnalogDataType X_MIN
X_MAX
public static final ControllerEvent.AnalogDataType X_MAX
Y_MIN
public static final ControllerEvent.AnalogDataType Y_MIN
Y_MAX
public static final ControllerEvent.AnalogDataType Y_MAX
Z_MIN
public static final ControllerEvent.AnalogDataType Z_MIN
Z_MAX
public static final ControllerEvent.AnalogDataType Z_MAX
TWIST_MIN
public static final ControllerEvent.AnalogDataType TWIST_MIN
TWIST_MAX
public static final ControllerEvent.AnalogDataType TWIST_MAX
X_DATA
public static final ControllerEvent.AnalogDataType X_DATA
Y_DATA
public static final ControllerEvent.AnalogDataType Y_DATA
Z_DATA
public static final ControllerEvent.AnalogDataType Z_DATA
TWIST_DATA
public static final ControllerEvent.AnalogDataType TWIST_DATA
RESERVED
public static final ControllerEvent.AnalogDataType RESERVED
values
public static ControllerEvent.AnalogDataType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ControllerEvent.AnalogDataType c : ControllerEvent.AnalogDataType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ControllerEvent.AnalogDataType valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
makeFromInt
public static ControllerEvent.AnalogDataType makeFromInt(int codeValue)