com.greenthrottle.gcs.api
Enum ControllerEvent.EventType

java.lang.Object
  extended by java.lang.Enum<ControllerEvent.EventType>
      extended by com.greenthrottle.gcs.api.ControllerEvent.EventType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ControllerEvent.EventType>
Enclosing class:
ControllerEvent

public static enum ControllerEvent.EventType
extends java.lang.Enum<ControllerEvent.EventType>


Enum Constant Summary
ANALOG_AS_DPAD
           
ANALOG_COMBINED
           
ANALOG_POLAR
           
INVALID
           
RAW
           
RESERVED
           
 
Method Summary
static ControllerEvent.EventType makeFromInt(int codeValue)
           
static ControllerEvent.EventType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ControllerEvent.EventType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
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
 

Enum Constant Detail

INVALID

public static final ControllerEvent.EventType INVALID

RAW

public static final ControllerEvent.EventType RAW

ANALOG_COMBINED

public static final ControllerEvent.EventType ANALOG_COMBINED

ANALOG_POLAR

public static final ControllerEvent.EventType ANALOG_POLAR

ANALOG_AS_DPAD

public static final ControllerEvent.EventType ANALOG_AS_DPAD

RESERVED

public static final ControllerEvent.EventType RESERVED
Method Detail

values

public static ControllerEvent.EventType[] 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.EventType c : ControllerEvent.EventType.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.EventType 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.EventType makeFromInt(int codeValue)