Enum GamePad.Button

java.lang.Object
  extended by java.lang.Enum<GamePad.Button>
      extended by GamePad.Button
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<GamePad.Button>
Enclosing class:
GamePad

public static enum GamePad.Button
extends java.lang.Enum<GamePad.Button>

An enum of all of the different buttons most commonly supported.


Enum Constant Summary
ACTION_DOWN
           
ACTION_LEFT
           
ACTION_RIGHT
           
ACTION_UP
           
L1
           
L2
           
L3
           
R1
           
R2
           
R3
           
SELECT
           
START
           
 
Method Summary
static GamePad.Button valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static GamePad.Button[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ACTION_DOWN

public static final GamePad.Button ACTION_DOWN

ACTION_LEFT

public static final GamePad.Button ACTION_LEFT

ACTION_RIGHT

public static final GamePad.Button ACTION_RIGHT

ACTION_UP

public static final GamePad.Button ACTION_UP

L1

public static final GamePad.Button L1

L2

public static final GamePad.Button L2

L3

public static final GamePad.Button L3

R1

public static final GamePad.Button R1

R2

public static final GamePad.Button R2

R3

public static final GamePad.Button R3

SELECT

public static final GamePad.Button SELECT

START

public static final GamePad.Button START
Method Detail

valueOf

public static GamePad.Button 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

values

public static GamePad.Button[] 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 (GamePad.Button c : GamePad.Button.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared