public class KeyCode extends Object
KeyCode#KeyCode
,
ModifierKeys
Modifier and Type | Field and Description |
---|---|
static KeyCode |
A
A key code representing the 'A' key.
|
static KeyCode |
Asterisk
A key code representing the '*' key.
|
static KeyCode |
B
A key code representing the 'B' key.
|
static KeyCode |
Backspace
A key code representing the backspace key.
|
static KeyCode |
C
A key code representing the 'C' key.
|
static KeyCode |
D
A key code representing the 'D' key.
|
static KeyCode |
Down
A key code representing the down key.
|
static KeyCode |
E
A key code representing the 'E' key.
|
static KeyCode |
Eight
A key code representing the '8' key.
|
static KeyCode |
End
A key code representing the end key.
|
static KeyCode |
Escape
A key code representing the escape key.
|
static KeyCode |
F
A key code representing the 'F' key.
|
static KeyCode |
Five
A key code representing the '5' key.
|
static KeyCode |
Four
A key code representing the '4' key.
|
static KeyCode |
G
A key code representing the 'G' key.
|
static KeyCode |
H
A key code representing the 'H' key.
|
static KeyCode |
Home
A key code representing the home key.
|
static KeyCode |
I
A key code representing the 'I' key.
|
static KeyCode |
J
A key code representing the 'J' key.
|
static KeyCode |
K
A key code representing the 'K' key.
|
static KeyCode |
L
A key code representing the 'L' key.
|
static KeyCode |
Left
A key code representing the left key.
|
static KeyCode |
M
A key code representing the 'M' key.
|
static KeyCode |
Minus
A key code representing the '-' key.
|
static KeyCode |
N
A key code representing the 'N' key.
|
static KeyCode |
Nine
A key code representing the '9' key.
|
static KeyCode |
O
A key code representing the 'O' key.
|
static KeyCode |
One
A key code representing the '1' key.
|
static KeyCode |
P
A key code representing the 'P' key.
|
static KeyCode |
PageDown
A key code representing the page down key.
|
static KeyCode |
PageUp
A key code representing the pacge up key.
|
static KeyCode |
Plus
A key code representing the '+' key.
|
static KeyCode |
Q
A key code representing the 'Q' key.
|
static KeyCode |
R
A key code representing the 'R' key.
|
static KeyCode |
Right
A key code representing the right key.
|
static KeyCode |
S
A key code representing the 'S' key.
|
static KeyCode |
Seven
A key code representing the '7' key.
|
static KeyCode |
Six
A key code representing the '6' key.
|
static KeyCode |
Slash
A key code representing the '/' key.
|
static KeyCode |
Space
A key code representing the space key.
|
static KeyCode |
T
A key code representing the 'T' key.
|
static KeyCode |
Three
A key code representing the '3' key.
|
static KeyCode |
Two
A key code representing the '2' key.
|
static KeyCode |
U
A key code representing the 'U' key.
|
static KeyCode |
Unknown
A key code representing an unknown key.
|
static KeyCode |
Up
A key code representing the up key.
|
static KeyCode |
V
A key code representing the 'V' key.
|
static KeyCode |
W
A key code representing the 'W' key.
|
static KeyCode |
X
A key code representing the 'X' key.
|
static KeyCode |
Y
A key code representing the 'Y' key.
|
static KeyCode |
Z
A key code representing the 'Z' key.
|
static KeyCode |
Zero
A key code representing the '0' key.
|
Constructor and Description |
---|
KeyCode(long index)
Creates a new
KeyCode with the given index. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(@Nullable Object other) |
long |
getIndex()
The index of the key code.
|
int |
hashCode() |
public static final KeyCode Unknown
public static final KeyCode Space
public static final KeyCode Plus
public static final KeyCode Minus
public static final KeyCode Asterisk
public static final KeyCode Slash
public static final KeyCode Escape
public static final KeyCode Backspace
public static final KeyCode Zero
public static final KeyCode One
public static final KeyCode Two
public static final KeyCode Three
public static final KeyCode Four
public static final KeyCode Five
public static final KeyCode Six
public static final KeyCode Seven
public static final KeyCode Eight
public static final KeyCode Nine
public static final KeyCode A
public static final KeyCode B
public static final KeyCode C
public static final KeyCode D
public static final KeyCode E
public static final KeyCode F
public static final KeyCode G
public static final KeyCode H
public static final KeyCode I
public static final KeyCode J
public static final KeyCode K
public static final KeyCode L
public static final KeyCode M
public static final KeyCode N
public static final KeyCode O
public static final KeyCode P
public static final KeyCode Q
public static final KeyCode R
public static final KeyCode S
public static final KeyCode T
public static final KeyCode U
public static final KeyCode V
public static final KeyCode W
public static final KeyCode X
public static final KeyCode Y
public static final KeyCode Z
public static final KeyCode Home
public static final KeyCode End
public static final KeyCode Left
public static final KeyCode Up
public static final KeyCode Right
public static final KeyCode Down
public static final KeyCode PageUp
public static final KeyCode PageDown
public KeyCode(long index)
KeyCode
with the given index.
The key button index maps on to keys as follows:
If needed other indexes can be used if out of those values. For example if you want to handle unicode characters. Please use index values greater than 1024 for custom key codes.
index
- the mouse button index.