Debian Codegraph @

netgames/includes/DMFCKeyCodes.h

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 --- HISTORICAL COMMENTS FOLLOW ---
19
20 * $Logfile: /DescentIII/main/DMFCKeyCodes.h $
21 * $Revision: 1.2 $
22 * $Date: 2004/02/09 04:14:49 $
23 * $Author: kevinb $
24 *
25 * Keycodes for use in DMFC
26 *
27 * $Log: DMFCKeyCodes.h,v $
28 * Revision 1.2 2004/02/09 04:14:49 kevinb
29 * Added newlines to all headers to reduce number of warnings printed
30 *
31 * Made some small changes to get everything compiling.
32 *
33 * All Ready to merge the 1.5 tree.
34 *
35 * Revision 1.1.1.1 2000/04/18 00:00:30 icculus
36 * initial checkin
37 *
38 *
39 * 2 9/21/98 7:11p Jeff
40 * made InputCommand interface API and moved existing input commands to
41 * the interface. Changed mprintf/ASSERT so they are valid in DMFC
42 *
43 * $NoKeywords: $
44 */
45
46 #ifndef __DMFC_KEYB_H_
47 #define __DMFC_KEYB_H_
48
49 // codes
50 #define K_0 0x0B
51 #define K_1 0x02
52 #define K_2 0x03
53 #define K_3 0x04
54 #define K_4 0x05
55 #define K_5 0x06
56 #define K_6 0x07
57 #define K_7 0x08
58 #define K_8 0x09
59 #define K_9 0x0A
60 #define K_A 0x1E
61 #define K_B 0x30
62 #define K_C 0x2E
63 #define K_D 0x20
64 #define K_E 0x12
65 #define K_F 0x21
66 #define K_G 0x22
67 #define K_H 0x23
68 #define K_I 0x17
69 #define K_J 0x24
70 #define K_K 0x25
71 #define K_L 0x26
72 #define K_M 0x32
73 #define K_N 0x31
74 #define K_O 0x18
75 #define K_P 0x19
76 #define K_Q 0x10
77 #define K_R 0x13
78 #define K_S 0x1F
79 #define K_T 0x14
80 #define K_U 0x16
81 #define K_V 0x2F
82 #define K_W 0x11
83 #define K_X 0x2D
84 #define K_Y 0x15
85 #define K_Z 0x2C
86 #define K_MINUS 0x0C
87 #define K_EQUAL 0x0D
88 #define K_DIVIDE 0x35
89 #define K_SLASH 0x2B
90 #define K_COMMA 0x33
91 #define K_PERIOD 0x34
92 #define K_SEMICOL 0x27
93 #define K_LBRACKET 0x1A
94 #define K_RBRACKET 0x1B
95 #define K_RAPOSTRO 0x28
96 #define K_LAPOSTRO 0x29
97 #define K_ESC 0x01
98 #define K_ENTER 0x1C
99 #define K_BACKSP 0x0E
100 #define K_TAB 0x0F
101 #define K_SPACEBAR 0x39
102 #define K_NUMLOCK 0x45
103 #define K_SCROLLOCK 0x46
104 #define K_CAPSLOCK 0x3A
105 #define K_LSHIFT 0x2A
106 #define K_RSHIFT 0x36
107 #define K_LALT 0x38
108 #define K_RALT 0xB8
109 #define K_LCTRL 0x1D
110 #define K_RCTRL 0x9D
111
112 #define K_F1 0x3B
113 #define K_F2 0x3C
114 #define K_F3 0x3D
115 #define K_F4 0x3E
116 #define K_F5 0x3F
117 #define K_F6 0x40
118 #define K_F7 0x41
119 #define K_F8 0x42
120 #define K_F9 0x43
121 #define K_F10 0x44
122 #define K_F11 0x57
123 #define K_F12 0x58
124
125 #define K_PAD0 0x52
126 #define K_PAD1 0x4F
127 #define K_PAD2 0x50
128 #define K_PAD3 0x51
129 #define K_PAD4 0x4B
130 #define K_PAD5 0x4C
131 #define K_PAD6 0x4D
132 #define K_PAD7 0x47
133 #define K_PAD8 0x48
134 #define K_PAD9 0x49
135 #define K_PADMINUS 0x4A
136 #define K_PADPLUS 0x4E
137 #define K_PADPERIOD 0x53
138 #define K_PADDIVIDE 0xB5
139 #define K_PADMULTIPLY 0x37
140 #define K_PADENTER 0x9C
141
142 #define K_INSERT 0xD2
143 #define K_HOME 0xC7
144 #define K_PAGEUP 0xC9
145 #define K_DELETE 0xD3
146 #define K_END 0xCF
147 #define K_PAGEDOWN 0xD1
148 #define K_UP 0xC8
149 #define K_DOWN 0xD0
150 #define K_LEFT 0xCB
151 #define K_RIGHT 0xCD
152 #define K_PRINT_SCREEN 0xB7
153 #define K_PAUSE 0x61
154
155 #endif