Table of Contents

Enum GlKeys

Namespace
Vintagestory.API.Client
Assembly
VintagestoryAPI.dll

Internally the game uses OpenTK and their Keys are by default mapped to US QWERTY Keyboard layout which the GlKeys also do. Upon typing text in a Text input field it will produce the correct characters according to your keyboard layout.

If you need to get the character for the current Keyboard layout use GetKeyName(GlKeys)

public enum GlKeys
Extension Methods

Fields

A = 83
AltLeft = 5
AltRight = 6
B = 84
Back = 53
BackSlash = 129
BackSpace = 53
BracketLeft = 122
BracketRight = 123
C = 85
CapsLock = 60
Clear = 65
Comma = 126
ControlLeft = 3
ControlRight = 4
D = 86
Delete = 55
Down = 46
E = 87
End = 59
Enter = 49
Escape = 50
F = 88
F1 = 10
F10 = 19
F11 = 20
F12 = 21
F13 = 22
F14 = 23
F15 = 24
F16 = 25
F17 = 26
F18 = 27
F19 = 28
F2 = 11
F20 = 29
F21 = 30
F22 = 31
F23 = 32
F24 = 33
F25 = 34
F26 = 35
F27 = 36
F28 = 37
F29 = 38
F3 = 12
F30 = 39
F31 = 40
F32 = 41
F33 = 42
F34 = 43
F35 = 44
F4 = 13
F5 = 14
F6 = 15
F7 = 16
F8 = 17
F9 = 18
G = 89
H = 90
Home = 58
I = 91
Insert = 54
J = 92
K = 93
Keypad0 = 67
Keypad1 = 68
Keypad2 = 69
Keypad3 = 70
Keypad4 = 71
Keypad5 = 72
Keypad6 = 73
Keypad7 = 74
Keypad8 = 75
Keypad9 = 76
KeypadAdd = 80
KeypadDecimal = 81
KeypadDivide = 77
KeypadEnter = 82
KeypadMinus = 79
KeypadMultiply = 78
KeypadPlus = 80
KeypadSubtract = 79
L = 94
LAlt = 5
LBracket = 122
LControl = 3
LShift = 1
LWin = 7
LastKey = 130
Left = 47
M = 95
Menu = 9
Minus = 120
N = 96
NumLock = 64
Number0 = 109
Number1 = 110
Number2 = 111
Number3 = 112
Number4 = 113
Number5 = 114
Number6 = 115
Number7 = 116
Number8 = 117
Number9 = 118
O = 97
P = 98
PageDown = 57
PageUp = 56
Pause = 63
Period = 127
Plus = 121
PrintScreen = 62
Q = 99
Quote = 125
R = 100
RAlt = 6
RBracket = 123
RControl = 4
RShift = 2
RWin = 8
Right = 48
S = 101
ScrollLock = 61
Semicolon = 124
ShiftLeft = 1
ShiftRight = 2
Slash = 128
Sleep = 66
Space = 51
T = 102
Tab = 52
Tilde = 119
U = 103
Unknown = 0
Up = 45
V = 104
W = 105
WinLeft = 7
WinRight = 8
X = 106
Y = 107
Z = 108