Package org.team1540.rooster.util
Enum ChickenXboxController.XboxButton
- java.lang.Object
-
- java.lang.Enum<ChickenXboxController.XboxButton>
-
- org.team1540.rooster.util.ChickenXboxController.XboxButton
-
- All Implemented Interfaces:
Serializable
,Comparable<ChickenXboxController.XboxButton>
- Enclosing class:
- ChickenXboxController
public static enum ChickenXboxController.XboxButton extends Enum<ChickenXboxController.XboxButton>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description A
B
BACK
LB
LEFT_PRESS
RB
RIGHT_PRESS
START
X
Y
-
Field Summary
Fields Modifier and Type Field Description int
value
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ChickenXboxController.XboxButton
of(int value)
static ChickenXboxController.XboxButton
valueOf(String name)
Returns the enum constant of this type with the specified name.static ChickenXboxController.XboxButton[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
A
public static final ChickenXboxController.XboxButton A
-
B
public static final ChickenXboxController.XboxButton B
-
X
public static final ChickenXboxController.XboxButton X
-
Y
public static final ChickenXboxController.XboxButton Y
-
LB
public static final ChickenXboxController.XboxButton LB
-
RB
public static final ChickenXboxController.XboxButton RB
-
BACK
public static final ChickenXboxController.XboxButton BACK
-
START
public static final ChickenXboxController.XboxButton START
-
LEFT_PRESS
public static final ChickenXboxController.XboxButton LEFT_PRESS
-
RIGHT_PRESS
public static final ChickenXboxController.XboxButton RIGHT_PRESS
-
-
Method Detail
-
values
public static ChickenXboxController.XboxButton[] 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 (ChickenXboxController.XboxButton c : ChickenXboxController.XboxButton.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChickenXboxController.XboxButton valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
of
public static ChickenXboxController.XboxButton of(int value)
-
-