public enum EventTrigger extends java.lang.Enum<EventTrigger>
Enum Constant and Description |
---|
CONTROLLER |
KEYBOARD |
LEFT_MOUSE_CLICK |
MIDDLE_MOUSE_CLICK |
RIGHT_MOUSE_CLICK |
Modifier and Type | Method and Description |
---|---|
static EventTrigger |
getTriggerForMouseClick(int button) |
static EventTrigger |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EventTrigger[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EventTrigger LEFT_MOUSE_CLICK
public static final EventTrigger RIGHT_MOUSE_CLICK
public static final EventTrigger MIDDLE_MOUSE_CLICK
public static final EventTrigger KEYBOARD
public static final EventTrigger CONTROLLER
public static EventTrigger[] values()
for (EventTrigger c : EventTrigger.values()) System.out.println(c);
public static EventTrigger valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static EventTrigger getTriggerForMouseClick(int button)