Button

public enum Button extends Enum<Button>

Enum class representing the buttons on a joystick or game controller.

Entries

Link copied to clipboard

Button A with identifier 1.

Link copied to clipboard

Button B with identifier 2.

Link copied to clipboard

Button X with identifier 3.

Link copied to clipboard

Button Y with identifier 4.

Link copied to clipboard

Start button with identifier 8.

Link copied to clipboard

Left bumper button with identifier 5.

Link copied to clipboard

Right bumper button with identifier 6.

Properties

Link copied to clipboard
private final Integer buttonNumber

The numerical identifier for the button.

Link copied to clipboard
private final EnumEntries<Button> entries

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Functions

Link copied to clipboard
public final Integer getButtonNumber()

The numerical identifier for the button.

Link copied to clipboard
public final EnumEntries<Button> getEntries()

Enum class representing the buttons on a joystick or game controller.

Link copied to clipboard
public final Button valueOf(String value)

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.)

Link copied to clipboard
public final Array<Button> values()

Returns an array containing the constants of this enum type, in the order they're declared.