Package com.luciad.input
Class KeyCode
java.lang.Object
com.luciad.input.KeyCode
Represents a key in the controller API.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final KeyCode
A key code representing the 'A' key.static final KeyCode
A key code representing the '*' key.static final KeyCode
A key code representing the 'B' key.static final KeyCode
A key code representing the backspace key.static final KeyCode
A key code representing the 'C' key.static final KeyCode
A key code representing the 'D' key.static final KeyCode
A key code representing the down key.static final KeyCode
A key code representing the 'E' key.static final KeyCode
A key code representing the '8' key.static final KeyCode
A key code representing the end key.static final KeyCode
A key code representing the escape key.static final KeyCode
A key code representing the 'F' key.static final KeyCode
A key code representing the '5' key.static final KeyCode
A key code representing the '4' key.static final KeyCode
A key code representing the 'G' key.static final KeyCode
A key code representing the 'H' key.static final KeyCode
A key code representing the home key.static final KeyCode
A key code representing the 'I' key.static final KeyCode
A key code representing the 'J' key.static final KeyCode
A key code representing the 'K' key.static final KeyCode
A key code representing the 'L' key.static final KeyCode
A key code representing the left key.static final KeyCode
A key code representing the 'M' key.static final KeyCode
A key code representing the '-' key.static final KeyCode
A key code representing the 'N' key.static final KeyCode
A key code representing the '9' key.static final KeyCode
A key code representing the 'O' key.static final KeyCode
A key code representing the '1' key.static final KeyCode
A key code representing the 'P' key.static final KeyCode
A key code representing the page down key.static final KeyCode
A key code representing the pacge up key.static final KeyCode
A key code representing the '+' key.static final KeyCode
A key code representing the 'Q' key.static final KeyCode
A key code representing the 'R' key.static final KeyCode
A key code representing the right key.static final KeyCode
A key code representing the 'S' key.static final KeyCode
A key code representing the '7' key.static final KeyCode
A key code representing the '6' key.static final KeyCode
A key code representing the '/' key.static final KeyCode
A key code representing the space key.static final KeyCode
A key code representing the 'T' key.static final KeyCode
A key code representing the '3' key.static final KeyCode
A key code representing the '2' key.static final KeyCode
A key code representing the 'U' key.static final KeyCode
A key code representing an unknown key.static final KeyCode
A key code representing the up key.static final KeyCode
A key code representing the 'V' key.static final KeyCode
A key code representing the 'W' key.static final KeyCode
A key code representing the 'X' key.static final KeyCode
A key code representing the 'Y' key.static final KeyCode
A key code representing the 'Z' key.static final KeyCode
A key code representing the '0' key. -
Constructor Summary
-
Method Summary
-
Field Details
-
Unknown
A key code representing an unknown key. -
Space
A key code representing the space key. -
Plus
A key code representing the '+' key. -
Minus
A key code representing the '-' key. -
Asterisk
A key code representing the '*' key. -
Slash
A key code representing the '/' key. -
Escape
A key code representing the escape key. -
Backspace
A key code representing the backspace key. -
Zero
A key code representing the '0' key. -
One
A key code representing the '1' key. -
Two
A key code representing the '2' key. -
Three
A key code representing the '3' key. -
Four
A key code representing the '4' key. -
Five
A key code representing the '5' key. -
Six
A key code representing the '6' key. -
Seven
A key code representing the '7' key. -
Eight
A key code representing the '8' key. -
Nine
A key code representing the '9' key. -
A
A key code representing the 'A' key. -
B
A key code representing the 'B' key. -
C
A key code representing the 'C' key. -
D
A key code representing the 'D' key. -
E
A key code representing the 'E' key. -
F
A key code representing the 'F' key. -
G
A key code representing the 'G' key. -
H
A key code representing the 'H' key. -
I
A key code representing the 'I' key. -
J
A key code representing the 'J' key. -
K
A key code representing the 'K' key. -
L
A key code representing the 'L' key. -
M
A key code representing the 'M' key. -
N
A key code representing the 'N' key. -
O
A key code representing the 'O' key. -
P
A key code representing the 'P' key. -
Q
A key code representing the 'Q' key. -
R
A key code representing the 'R' key. -
S
A key code representing the 'S' key. -
T
A key code representing the 'T' key. -
U
A key code representing the 'U' key. -
V
A key code representing the 'V' key. -
W
A key code representing the 'W' key. -
X
A key code representing the 'X' key. -
Y
A key code representing the 'Y' key. -
Z
A key code representing the 'Z' key. -
Home
A key code representing the home key. -
End
A key code representing the end key. -
Left
A key code representing the left key. -
Up
A key code representing the up key. -
Right
A key code representing the right key. -
Down
A key code representing the down key. -
PageUp
A key code representing the pacge up key. -
PageDown
A key code representing the page down key.
-
-
Constructor Details
-
KeyCode
public KeyCode(long index) Creates a newKeyCode
with the given index.The key button index maps on to keys as follows:
- 0 => Unknown
- 8 => Backspace
- 27 => Escape
- 32 => Space
- 42 => Asterisk
- 43 => Plus
- 45 => Minus
- 47 => Slash
- 48 => 0
- 49 => 1
- ...
- 57 => 9
- 65 => A
- 66 => B
- ...
- 90 => Z
- 200 => Home
- 201 => End
- 202 => Left
- 203 => Up
- 204 => Right
- 205 => Down
- 206 => Page-Up
- 207 => Page-Down
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.
- Parameters:
index
- the mouse button index.
-
-
Method Details