Package ca.team3161.lib.utils.controls
Enum Gamepad.PressType
- java.lang.Object
-
- java.lang.Enum<Gamepad.PressType>
-
- ca.team3161.lib.utils.controls.Gamepad.PressType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Gamepad.PressType>
- Enclosing interface:
- Gamepad
public static enum Gamepad.PressType extends java.lang.Enum<Gamepad.PressType>
Types of button press actions.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Gamepad.PressType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Gamepad.PressType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PRESS
public static final Gamepad.PressType PRESS
-
RELEASE
public static final Gamepad.PressType RELEASE
-
HOLD
public static final Gamepad.PressType HOLD
-
-
Method Detail
-
values
public static Gamepad.PressType[] 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.PressType c : Gamepad.PressType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Gamepad.PressType 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 namejava.lang.NullPointerException
- if the argument is null
-
-