Keyboard mapping
Some functions in OpenSpace require refering to keyboard inputs. This page describes the allowed names for the different keys that are accepted by those functions. There are two different parts to a key, the key itself and a modifier. The two tables below describe the constants that are allowed for each. To combine them, they should be concatenated with a +. For example SHIFT+A indicates a capital A whereas CTRL+ALT+0 means that the Control key and Alt keys are pressed, followed by the number key 0.
Modifier |
Keyword |
|---|---|
Shift |
SHIFT |
Control |
CTRL |
Alt |
ALT |
Super |
SUPER |
For the modifiers, “Super” is a generic name for the Windows key, for example.
Key |
Keyword |
|---|---|
Space |
SPACE |
|
APOSTROPHE |
|
COMMA |
|
MINUS |
|
PERIOD |
|
SLASH |
|
0 |
|
1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
SEMICOLON |
|
EQUAL |
|
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 |
|
LEFTBRACKET |
|
BACKSLASH |
|
RIGHTBRACKET |
|
GRAVEACCENT |
World1 |
WORLD1 |
World2 |
WORLD2 |
Esc |
ESC |
Enter |
ENTER |
Backspace |
BACKSPACE |
Insert |
INSERT |
Delete |
DELETE |
Right Arrow |
RIGHT |
Left Arrow |
LEFT |
Down Arrow |
DOWN |
Up Arrow |
UP |
Page Up |
PAGEUP |
Page Down |
PAGEDOWN |
Home |
HOME |
End |
END |
CapsLock |
CAPS_LOCK |
ScrollLock |
SCROLL_LOCK |
NumLock |
NUM_LOCK |
PRINT_SCREEN |
|
Pause |
PAUSE |
|
F1 |
|
F2 |
|
F3 |
|
F4 |
|
F5 |
|
F6 |
|
F7 |
|
F8 |
|
F9 |
|
F10 |
|
F11 |
|
F12 |
|
F13 |
|
F14 |
|
F15 |
|
F16 |
|
F17 |
|
F18 |
|
F19 |
|
F20 |
|
F21 |
|
F22 |
|
F23 |
|
F24 |
|
F25 |
Keypad |
KP_0 |
Keypad |
KP_1 |
Keypad |
KP_2 |
Keypad |
KP_3 |
Keypad |
KP_4 |
Keypad |
KP_5 |
Keypad |
KP_6 |
Keypad |
KP_7 |
Keypad |
KP_8 |
Keypad |
KP_9 |
Keypad |
KP_DECIMAL |
Keypad |
KP_DIVIDE |
Keypad |
KP_MULTIPLY |
Keypad |
KP_SUBTRACT |
Keypad |
KP_ADD |
Keypad Enter |
KP_ENTER |
Menu |
MENU |