com.greenthrottle.gcs.api
Enum ControllerEvent.CommonCodes

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

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

Indicates the controller button, stick, or trigger that caused the event


Enum Constant Summary
__ANALOG_BEGIN__
           
__ANALOG_DPAD_BEGIN__
           
__ANALOG_DPAD_END__
           
__ANALOG_END__
           
__BUTTONS_BEGIN__
           
__BUTTONS_END__
           
__DPAD_BEGIN__
           
__DPAD_END__
           
__FIRST__
           
__LAST__
           
A_BUTTON
           
B_BUTTON
           
BACK_BUTTON
           
BUTTON_1
           
BUTTON_2
           
BUTTON_3
           
BUTTON_4
           
C_BUTTON
           
D_BUTTON
           
DPAD_DOWN
           
DPAD_LEFT
           
DPAD_RIGHT
           
DPAD_UP
           
HOME_BUTTON
           
INVALID
           
L1_BUTTON
           
L2_ANALOG
           
L2_BUTTON
           
L3_BUTTON
           
LEFT_ANALOG
           
LEFT_ANALOG_AS_DPAD_DOWN
           
LEFT_ANALOG_AS_DPAD_LEFT
           
LEFT_ANALOG_AS_DPAD_RIGHT
           
LEFT_ANALOG_AS_DPAD_UP
           
R1_BUTTON
           
R2_ANALOG
           
R2_BUTTON
           
R3_BUTTON
           
RESERVED
           
RIGHT_ANALOG
           
RIGHT_ANALOG_AS_DPAD_DOWN
           
RIGHT_ANALOG_AS_DPAD_LEFT
           
RIGHT_ANALOG_AS_DPAD_RIGHT
           
RIGHT_ANALOG_AS_DPAD_UP
           
START_BUTTON
           
X_BUTTON
           
Y_BUTTON
           
 
Method Summary
 boolean isEqual(java.lang.Object o)
           
static ControllerEvent.CommonCodes makeFromInt(int codeValue)
          Used internally as part of IPC to regenerate event object
static ControllerEvent.CommonCodes[] makeFromIntAllAlternatives(int codeValue)
          Used internally as part of IPC to regenerate event object
 java.lang.String n()
           
 int v()
           
static ControllerEvent.CommonCodes valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ControllerEvent.CommonCodes[] 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

__FIRST__

public static final ControllerEvent.CommonCodes __FIRST__

INVALID

public static final ControllerEvent.CommonCodes INVALID

__BUTTONS_BEGIN__

public static final ControllerEvent.CommonCodes __BUTTONS_BEGIN__

A_BUTTON

public static final ControllerEvent.CommonCodes A_BUTTON

B_BUTTON

public static final ControllerEvent.CommonCodes B_BUTTON

C_BUTTON

public static final ControllerEvent.CommonCodes C_BUTTON

D_BUTTON

public static final ControllerEvent.CommonCodes D_BUTTON

X_BUTTON

public static final ControllerEvent.CommonCodes X_BUTTON

Y_BUTTON

public static final ControllerEvent.CommonCodes Y_BUTTON

BUTTON_1

public static final ControllerEvent.CommonCodes BUTTON_1

BUTTON_2

public static final ControllerEvent.CommonCodes BUTTON_2

BUTTON_3

public static final ControllerEvent.CommonCodes BUTTON_3

BUTTON_4

public static final ControllerEvent.CommonCodes BUTTON_4

START_BUTTON

public static final ControllerEvent.CommonCodes START_BUTTON

BACK_BUTTON

public static final ControllerEvent.CommonCodes BACK_BUTTON

HOME_BUTTON

public static final ControllerEvent.CommonCodes HOME_BUTTON

R1_BUTTON

public static final ControllerEvent.CommonCodes R1_BUTTON

R2_BUTTON

public static final ControllerEvent.CommonCodes R2_BUTTON

R3_BUTTON

public static final ControllerEvent.CommonCodes R3_BUTTON

L1_BUTTON

public static final ControllerEvent.CommonCodes L1_BUTTON

L2_BUTTON

public static final ControllerEvent.CommonCodes L2_BUTTON

L3_BUTTON

public static final ControllerEvent.CommonCodes L3_BUTTON

__BUTTONS_END__

public static final ControllerEvent.CommonCodes __BUTTONS_END__

__DPAD_BEGIN__

public static final ControllerEvent.CommonCodes __DPAD_BEGIN__

DPAD_UP

public static final ControllerEvent.CommonCodes DPAD_UP

DPAD_RIGHT

public static final ControllerEvent.CommonCodes DPAD_RIGHT

DPAD_DOWN

public static final ControllerEvent.CommonCodes DPAD_DOWN

DPAD_LEFT

public static final ControllerEvent.CommonCodes DPAD_LEFT

__DPAD_END__

public static final ControllerEvent.CommonCodes __DPAD_END__

__ANALOG_DPAD_BEGIN__

public static final ControllerEvent.CommonCodes __ANALOG_DPAD_BEGIN__

LEFT_ANALOG_AS_DPAD_UP

public static final ControllerEvent.CommonCodes LEFT_ANALOG_AS_DPAD_UP

LEFT_ANALOG_AS_DPAD_RIGHT

public static final ControllerEvent.CommonCodes LEFT_ANALOG_AS_DPAD_RIGHT

LEFT_ANALOG_AS_DPAD_DOWN

public static final ControllerEvent.CommonCodes LEFT_ANALOG_AS_DPAD_DOWN

LEFT_ANALOG_AS_DPAD_LEFT

public static final ControllerEvent.CommonCodes LEFT_ANALOG_AS_DPAD_LEFT

RIGHT_ANALOG_AS_DPAD_UP

public static final ControllerEvent.CommonCodes RIGHT_ANALOG_AS_DPAD_UP

RIGHT_ANALOG_AS_DPAD_RIGHT

public static final ControllerEvent.CommonCodes RIGHT_ANALOG_AS_DPAD_RIGHT

RIGHT_ANALOG_AS_DPAD_DOWN

public static final ControllerEvent.CommonCodes RIGHT_ANALOG_AS_DPAD_DOWN

RIGHT_ANALOG_AS_DPAD_LEFT

public static final ControllerEvent.CommonCodes RIGHT_ANALOG_AS_DPAD_LEFT

__ANALOG_DPAD_END__

public static final ControllerEvent.CommonCodes __ANALOG_DPAD_END__

__ANALOG_BEGIN__

public static final ControllerEvent.CommonCodes __ANALOG_BEGIN__

LEFT_ANALOG

public static final ControllerEvent.CommonCodes LEFT_ANALOG

RIGHT_ANALOG

public static final ControllerEvent.CommonCodes RIGHT_ANALOG

L2_ANALOG

public static final ControllerEvent.CommonCodes L2_ANALOG

R2_ANALOG

public static final ControllerEvent.CommonCodes R2_ANALOG

__ANALOG_END__

public static final ControllerEvent.CommonCodes __ANALOG_END__

__LAST__

public static final ControllerEvent.CommonCodes __LAST__

RESERVED

public static final ControllerEvent.CommonCodes RESERVED
Method Detail

values

public static ControllerEvent.CommonCodes[] 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.CommonCodes c : ControllerEvent.CommonCodes.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.CommonCodes 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.CommonCodes makeFromInt(int codeValue)
Used internally as part of IPC to regenerate event object

Parameters:
codeValue -
Returns:

makeFromIntAllAlternatives

public static ControllerEvent.CommonCodes[] makeFromIntAllAlternatives(int codeValue)
Used internally as part of IPC to regenerate event object

Parameters:
codeValue -
Returns:

v

public int v()

n

public java.lang.String n()

isEqual

public boolean isEqual(java.lang.Object o)