public static enum InputMappings.Type extends java.lang.Enum<InputMappings.Type>
Modifier and Type | Field and Description |
---|---|
private it.unimi.dsi.fastutil.ints.Int2ObjectMap<InputMappings.Input> |
inputs |
private static java.lang.String[] |
MOUSE_BUTTONS |
private java.lang.String |
name |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
InputMappings.Input |
getOrMakeInput(int keyCode) |
private static void |
registerInput(InputMappings.Type type,
java.lang.String nameIn,
int keyCode) |
static InputMappings.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static InputMappings.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InputMappings.Type KEYSYM
public static final InputMappings.Type SCANCODE
public static final InputMappings.Type MOUSE
private static final java.lang.String[] MOUSE_BUTTONS
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<InputMappings.Input> inputs
private final java.lang.String name
public static InputMappings.Type[] values()
for (InputMappings.Type c : InputMappings.Type.values()) System.out.println(c);
public static InputMappings.Type 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 nullprivate static void registerInput(InputMappings.Type type, java.lang.String nameIn, int keyCode)
public InputMappings.Input getOrMakeInput(int keyCode)
public java.lang.String getName()