/
doomkeys.h
218 lines (183 loc) · 5.65 KB
/
doomkeys.h
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005-2014 Simon Howard
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// DESCRIPTION:
// Key definitions
//
#ifndef __DOOMKEYS__
#define __DOOMKEYS__
//
// DOOM keyboard definition.
// This is the stuff configured by Setup.Exe.
// Most key data are simple ascii (uppercased).
//
#define KEYP_MULTIPLY '*'
#define KEY_MINUS 0x2d
#define KEY_CAPSLOCK (0x80+0x3a)
#define KEY_NUMLOCK (0x80+0x45)
#define KEY_SCRLCK (0x80+0x46)
#define KEY_PRTSCR (0x80+0x59)
#define KEYP_5 '5'
#define KEYP_PLUS 0x7F
#define KEYP_MINUS 0x1F
/*
#define KEY_UPARROW 173
#define KEY_DOWNARROW 9
#define KEY_LEFTARROW 91
#define KEY_RIGHTARROW 93
#define KEY_TRIANGLE 175
#define KEY_CROSS 157
#define KEY_SQUARE 47
#define KEY_CIRCLE 32
//#define KEY_TRIANGLE 'A'
//#define KEY_CROSS 'B'
//#define KEY_SQUARE 'C'
//#define KEY_CIRCLE 'D'
#define KEY_SELECT 27
#define KEY_START 13
#define KEY_LEFTTRIGGER 44
#define KEY_RIGHTTRIGGER 46
//#define KEY_RIGHTARROW 0xae
//#define KEY_LEFTARROW 0xac
//#define KEY_UPARROW 0xad
//#define KEY_DOWNARROW 0xaf
//#define KEY_ESCAPE 27
//#define KEY_ENTER 13
//#define KEY_TAB 0xaf
#define KEY_F1 (0x80+0x3b)
#define KEY_F2 (0x80+0x3c)
#define KEY_F3 (0x80+0x3d)
#define KEY_F4 (0x80+0x3e)
#define KEY_F5 (0x80+0x3f)
#define KEY_F6 (0x80+0x40)
#define KEY_F7 (0x80+0x41)
#define KEY_F8 (0x80+0x42)
#define KEY_F9 (0x80+0x43)
#define KEY_F10 (0x80+0x44)
#define KEY_F11 (0x80+0x57)
#define KEY_F12 (0x80+0x58)
#define KEY_BACKSPACE 0x7f
#define KEY_PAUSE 0xff
//#define KEY_EQUALS 0x3d
#define KEY_RSHIFT (0x80+0x36)
#define KEY_RCTRL (0x80+0x1d)
#define KEY_RALT (0x80+0x38)
//#define KEY_LALT KEY_RALT
// new keys:
#define KEY_HOME (0x80+0x47)
#define KEY_END (0x80+0x4f)
#define KEY_PGUP (0x80+0x49)
#define KEY_PGDN (0x80+0x51)
#define KEY_INS (0x80+0x52)
#define KEY_DEL (0x80+0x53)
//#define KEY_1 0x31
//#define KEY_2 0x32
//#define KEY_3 0x33
//#define KEY_4 0x34
//#define KEYP_0 0
//#define KEYP_1 KEY_END
//#define KEYP_2 KEY_DOWNARROW
//#define KEYP_3 KEY_PGDN
//#define KEYP_4 KEY_LEFTARROW
//#define KEYP_6 KEY_RIGHTARROW
//#define KEYP_7 KEY_HOME
//#define KEYP_8 KEY_UPARROW
//#define KEYP_9 KEY_PGUP
//#define KEYP_DIVIDE '/'
//#define KEYP_PERIOD 0
//#define KEYP_EQUALS KEY_EQUALS
//#define KEYP_ENTER KEY_ENTER
*/
//#define KEY_RIGHTARROW 0xae
//#define KEY_LEFTARROW 0xac
//#define KEY_UPARROW 0xad
//#define KEY_DOWNARROW 0xaf
//#define KEY_ESCAPE 27
//#define KEY_ENTER 13
//#define KEY_F1 (0x80+0x3b)
//#define KEY_F2 (0x80+0x3c)
//#define KEY_F3 (0x80+0x3d)
//#define KEY_F4 (0x80+0x3e)
//#define KEY_F5 (0x80+0x3f)
//#define KEY_F6 (0x80+0x40)
//#define KEY_F7 (0x80+0x41)
//#define KEY_F8 (0x80+0x42)
//#define KEY_F9 (0x80+0x43)
//#define KEY_F10 (0x80+0x44)
//#define KEY_F11 (0x80+0x57)
//#define KEY_F12 (0x80+0x58)
//#define KEY_BACKSPACE 127
//#define KEY_PAUSE 0xff
//#define KEY_EQUALS 0x3d
//#define KEY_MINUS 0x2d
//#define KEY_RSHIFT (0x80+0x36)
//#define KEY_RCTRL (0x80+0x1d)
//#define KEY_RALT (0x80+0x38)
//#define KEY_LALT KEY_RALT
#define KEY_FIVE 0x35
#define KEY_SIX 0x36
#define KEY_SEVEN 0x37
#define KEY_EIGHT 0x38
#define KEY_NINE 0x39
#define KEY_ZERO 0x30
//#define KEY_LEFTBRACKET 91
//#define KEY_SEMICOLON 59
#define KEY_UPARROW 173
#define KEY_DOWNARROW 9
#define KEY_LEFTARROW 91
#define KEY_RIGHTARROW 93
#define KEY_TRIANGLE 175
#define KEY_CROSS 157
#define KEY_SQUARE 47
#define KEY_CIRCLE 32
#define KEY_SELECT 27
#define KEY_START 13
#define KEY_LEFTTRIGGER 44
#define KEY_RIGHTTRIGGER 46
#define KEY_TAB 9
#define KEY_COMMA 44
#define KEY_SLASH 47
#define KEY_BACKSLASH 0x5C
#define KEY_EQUALS 0x3d
#define KEY_ENTER 13
#define KEY_PGUP 150
#define KEY_PGDN 149
#define KEY_INS 147
#define KEY_HOME (0x80+0x5b)
#define KEY_END (0x80+0x5c)
#define KEY_DEL 148
#define KEY_RSHIFT (0x80+0x36)
#define KEY_RALT (0x80+0x38)
#define KEY_RCTRL (0x80+0x1d)
#define KEY_ESCAPE 27
#define KEY_F1 (0x80+0x3b)
#define KEY_F2 (0x80+0x3c)
#define KEY_F3 (0x80+0x3d)
#define KEY_F4 (0x80+0x3e)
#define KEY_F5 (0x80+0x3f)
#define KEY_F6 (0x80+0x40)
#define KEY_F7 (0x80+0x41)
#define KEY_F8 (0x80+0x42)
#define KEY_F9 (0x80+0x43)
#define KEY_F10 (0x80+0x44)
#define KEY_F11 (0x80+0x57)
#define KEY_F12 (0x80+0x58)
//#define KEY_INSERT (0x80+0x59)
//#define KEY_DELETE (0x80+0x5a)
//#define KEY_PAGEUP (0x80+0x5d)
//#define KEY_PAGEDOWN (0x80+0x5f)
#define KEY_BACKSPACE 127
#define KEY_PAUSE 0xff
#define KEY_LALT KEY_RALT
#endif // __DOOMKEYS__