Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 102 lines (101 sloc) 2.497 kb
b126e26 @tbradshaw The source of the setup program included with DOOM, Final DOOM, Strif…
tbradshaw authored
1 // SCAN CODES
2 #define SC_NONE 0x0000
3 #define SC_BAD 0x00ff
4 #define SC_ESC 0x0001
5 #define SC_F1 0x003b
6 #define SC_F2 0x003c
7 #define SC_F3 0x003d
8 #define SC_F4 0x003e
9 #define SC_F5 0x003f
10 #define SC_F6 0x0040
11 #define SC_F7 0x0041
12 #define SC_F8 0x0042
13 #define SC_F9 0x0043
14 #define SC_F10 0x0044
15 #define SC_F11 0x0057
16 #define SC_F12 0x0058
17 #define SC_TAB 0x000f
18 #define SC_SLASH 0x002b
19 #define SC_CAPS_LOCK 0x003a
20 #define SC_LEFT_SHIFT 0x002a
21 #define SC_CTRL 0x001d
22 #define SC_ALT 0x0038
23 #define SC_SCROLL_LOCK 0x0046
24 #define SC_BACKSPACE 0x000e
25 #define SC_ENTER 0x001c
26 #define SC_RIGHT_SHIFT 0x0036
27 #define SC_RIGHT_ALT 0xe038
28 #define SC_RIGHT_CTRL 0xe010
29 #define SC_EXT_INSERT 0xe052
30 #define SC_EXT_DELETE 0xe053
31 #define SC_EXT_HOME 0xe047
32 #define SC_EXT_END 0xe04f
33 #define SC_EXT_PAGEUP 0xe049
34 #define SC_EXT_PAGEDN 0xe051
35 #define SC_EXT_UP 0xe048
36 #define SC_EXT_DN 0xe050
37 #define SC_EXT_LEFT 0xe04b
38 #define SC_EXT_RIGHT 0xe04d
39 #define SC_EXT_ENTER 0xe01c
40 #define SC_NUMLOCK 0x0045
41 #define SC_INSERT 0x0052
42 #define SC_DELETE 0x0053
43 #define SC_HOME 0x0047
44 #define SC_END 0x004f
45 #define SC_PAGEUP 0x0049
46 #define SC_PAGEDN 0x0051
47 #ifdef STRIFE
48 #define SC_ENTER 0x001c
49 #define SC_BS 0x000e
50 #endif
51 #define SC_UP 0x0048
52 #define SC_DOWN 0x0050
53 #define SC_LEFT 0x004b
54 #define SC_RIGHT 0x004d
55 #define SC_1 0x0002
56 #define SC_2 0x0003
57 #define SC_3 0x0004
58 #define SC_4 0x0005
59 #define SC_5 0x0006
60 #define SC_6 0x0007
61 #define SC_7 0x0008
62 #define SC_8 0x0009
63 #define SC_9 0x000a
64 #define SC_0 0x000b
65 #define SC_Q 0x0010
66 #define SC_W 0x0011
67 #define SC_E 0x0012
68 #define SC_R 0x0013
69 #define SC_T 0x0014
70 #define SC_Y 0x0015
71 #define SC_U 0x0016
72 #define SC_I 0x0017
73 #define SC_O 0x0018
74 #define SC_P 0x0019
75 #define SC_A 0x001e
76 #define SC_S 0x001f
77 #define SC_D 0x0020
78 #define SC_F 0x0021
79 #define SC_G 0x0022
80 #define SC_H 0x0023
81 #define SC_J 0x0024
82 #define SC_K 0x0025
83 #define SC_L 0x0026
84 #define SC_Z 0x002c
85 #define SC_X 0x002d
86 #define SC_C 0x002e
87 #define SC_V 0x002f
88 #define SC_B 0x0030
89 #define SC_N 0x0031
90 #define SC_M 0x0032
91 #define SC_SPACE 0x0039
92 #define SC_RELEASE 0x0080
93 #define SC_COMMA 0x0033
94 #define SC_PERIOD 0x0034
95
96 // ASCII KEYCODES
97 #define KEY_ESC 0x1b
98 #define KEY_F1 0x3b
99 #define KEY_F2 0x3c
100 #define KEY_F10 0x44
101 #define KEY_ENTER 0x0d
102 
Something went wrong with that request. Please try again.