All available Keyboard keys that can be used via the Keyboard class.
View code on GitHub
Namespace: DeltaEngine.InputAssembly: DeltaEngine.Input (in DeltaEngine.Input.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Members
Member name | Value | Description | |
---|---|---|---|
None | 0 | ||
Backspace | 8 | ||
Tab | 9 | ||
Enter | 13 | ||
Pause | 19 | ||
CapsLock | 20 | ||
Escape | 27 | ||
Space | 32 | ||
PageUp | 33 | ||
PageDown | 34 | ||
End | 35 | ||
Home | 36 | ||
CursorLeft | 37 | ||
CursorUp | 38 | ||
CursorRight | 39 | ||
CursorDown | 40 | ||
PrintScreen | 44 | ||
Insert | 45 | ||
Delete | 46 | ||
D0 | 48 | ||
D1 | 49 | ||
D2 | 50 | ||
D3 | 51 | ||
D4 | 52 | ||
D5 | 53 | ||
D6 | 54 | ||
D7 | 55 | ||
D8 | 56 | ||
D9 | 57 | ||
A | 65 | ||
B | 66 | ||
C | 67 | ||
D | 68 | ||
E | 69 | ||
F | 70 | ||
G | 71 | ||
H | 72 | ||
I | 73 | ||
J | 74 | ||
K | 75 | ||
L | 76 | ||
M | 77 | ||
N | 78 | ||
O | 79 | ||
P | 80 | ||
Q | 81 | ||
R | 82 | ||
S | 83 | ||
T | 84 | ||
U | 85 | ||
V | 86 | ||
W | 87 | ||
X | 88 | ||
Y | 89 | ||
Z | 90 | ||
LeftWindows | 91 | ||
RightWindows | 92 | ||
WindowsKey | 94 | ||
NumPad0 | 96 | ||
NumPad1 | 97 | ||
NumPad2 | 98 | ||
NumPad3 | 99 | ||
NumPad4 | 100 | ||
NumPad5 | 101 | ||
NumPad6 | 102 | ||
NumPad7 | 103 | ||
NumPad8 | 104 | ||
NumPad9 | 105 | ||
Multiply | 106 | ||
Add | 107 | ||
Separator | 108 | ||
Subtract | 109 | ||
Decimal | 110 | ||
Divide | 111 | ||
F1 | 112 | ||
F2 | 113 | ||
F3 | 114 | ||
F4 | 115 | ||
F5 | 116 | ||
F6 | 117 | ||
F7 | 118 | ||
F8 | 119 | ||
F9 | 120 | ||
F10 | 121 | ||
F11 | 122 | ||
F12 | 123 | ||
NumLock | 144 | ||
Scroll | 145 | ||
Alt | 146 | ||
LeftShift | 147 | ||
RightShift | 148 | ||
LeftControl | 149 | ||
RightControl | 150 | ||
LeftAlt | 151 | ||
RightAlt | 152 | ||
Semicolon | 186 | ||
Plus | 187 | ||
Comma | 188 | ||
Minus | 189 | ||
Period | 190 | ||
Question | 191 | ||
Tilde | 192 | ||
ChatPadGreen | 202 | ||
ChatPadOrange | 203 | ||
OpenBrackets | 219 | ||
Pipe | 220 | ||
CloseBrackets | 221 | ||
Quotes | 222 | ||
Backslash | 226 | ||
NumberOfKeys | 227 |
Remarks
Examples
[Test] public void CanCreateKeyboardMessageWithoutParameter() { keyboardMessage = new KeyboardMessage(); Assert.NotNull(keyboardMessage); }
[Test] public void PressedKeyShouldBeEnter() { Assert.AreEqual(new[] { Key.Enter }, keyboardMessage.PressedKeys); }
[TestFixtureTearDown] public void Dispose() { keyboard.Dispose(); }
See Also