Enum Class Key
- All Implemented Interfaces:
Serializable
,Comparable<Key>
,Constable
Mappings for GLFW integer values for keyboard keys.
See: GLFW: Keyboard key tokens
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
static boolean
isValid
(int value) Checks if a given value is a valid value for a GLFW key.static Key
Returns the enum constant of this class with the specified name.static Key[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SPACE
-
ESCAPE
-
ENTER
-
TAB
-
L_SHIFT
-
L_CONTROL
-
L_ALT
-
R_SHIFT
-
R_CONTROL
-
R_ALT
-
LEFT_ARROW
-
RIGHT_ARROW
-
UP_ARROW
-
DOWN_ARROW
-
A
-
B
-
C
-
D
-
E
-
F
-
G
-
H
-
I
-
J
-
K
-
L
-
M
-
N
-
O
-
P
-
Q
-
R
-
S
-
T
-
U
-
V
-
W
-
X
-
Y
-
Z
-
NUM_0
-
NUM_1
-
NUM_2
-
NUM_3
-
NUM_4
-
NUM_5
-
NUM_6
-
NUM_7
-
NUM_8
-
NUM_9
-
F1
-
F2
-
F3
-
F4
-
F5
-
F6
-
F7
-
F8
-
F9
-
F10
-
F11
-
F12
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue() -
isValid
public static boolean isValid(int value) Checks if a given value is a valid value for a GLFW key.- Parameters:
value
- Value to test- Returns:
- True if the value is a valid value
-