-
Notifications
You must be signed in to change notification settings - Fork 0
/
Key.cs
executable file
·144 lines (131 loc) · 2.08 KB
/
Key.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
using System;
namespace AllegroSharp
{
public enum Key
{
A = 1,
B = 2,
C = 3,
D = 4,
E = 5,
F = 6,
G = 7,
H = 8,
I = 9,
J = 10,
K = 11,
L = 12,
M = 13,
N = 14,
O = 15,
P = 16,
Q = 17,
R = 18,
S = 19,
T = 20,
U = 21,
V = 22,
W = 23,
X = 24,
Y = 25,
Z = 26,
Num0 = 27,
Num1 = 28,
Num2 = 29,
Num3 = 30,
Num4 = 31,
Num5 = 32,
Num6 = 33,
Num7 = 34,
Num8 = 35,
Num9 = 36,
Pad0 = 37,
Pad1 = 38,
Pad2 = 39,
Pad3 = 40,
Pad4 = 41,
Pad5 = 42,
Pad6 = 43,
Pad7 = 44,
Pad8 = 45,
Pad9 = 46,
F1 = 47,
F2 = 48,
F3 = 49,
F4 = 50,
F5 = 51,
F6 = 52,
F7 = 53,
F8 = 54,
F9 = 55,
F10 = 56,
F11 = 57,
F12 = 58,
Escape = 59,
Tilde = 60,
Minus = 61,
Equals = 62,
Backspace = 63,
Tab = 64,
OpenBrace = 65,
CloseBrace = 66,
Enter = 67,
Semicolon = 68,
Quote = 69,
Backslash = 70,
Backslash2 = 71, /* DirectInput calls this DIK_OEM_102: "< > | on UK/Germany keyboards" */
Comma = 72,
FullStop = 73,
Slash = 74,
Space = 75,
Insert = 76,
Delete = 77,
Home = 78,
End = 79,
PageUp = 80,
PageDown = 81,
Left = 82,
Right = 83,
Up = 84,
Down = 85,
PadSlash = 86,
PadAsterisk = 87,
PadMinus = 88,
PadPlus = 89,
PadDelete = 90,
PadEnter = 91,
PrintScreen = 92,
Pause = 93,
ABNT_C1 = 94,
Yen = 95,
Kana = 96,
Convert = 97,
NoConvert = 98,
AT = 99,
Circumflex = 100,
Colon2 = 101,
Kanji = 102,
EqualsPad = 103, /* MacOS X */
BackQuote = 104, /* MacOS X */
Semicolon2 = 105, /* MacOS X -- TODO: ask lillo what this should be */
Command = 106, /* MacOS X */
Unknown = 107,
/* All codes up to before MODIFIERS can be freely
* assignedas additional unknown keys, like various multimedia
* and application keys keyboards may have.
*/
Modifiers = 215,
LShift = 215,
RShift = 216,
LCtrl = 217,
RCtrl = 218,
Alt = 219,
AltGR = 220,
LWin = 221,
RWin = 222,
Menu = 223,
ScrollLock = 224,
NumLock = 225,
CapsLock = 226
}
}