1 //////////////////////////////////////////////////////////
6 /////////////////////////////////////////////////////////
8 /////////////////////////////////////////////////////////
11 /////////////////////////////////////////////////////////
13 /////////////////////////////////////////////////////////
17 void(float keynr, float ascii) m_keydown;
22 /////////////////////////////////////////////////////////
24 ///////////////////////////
28 // these are the key numbers that should be passed to Key_Event
35 // normal keys should be passed as lowercased ascii
37 float K_BACKSPACE = 127;
38 float K_UPARROW = 128;
39 float K_DOWNARROW = 129;
40 float K_LEFTARROW = 130;
41 float K_RIGHTARROW = 131;
65 float K_KP_HOME = 160;
66 float K_KP_UPARROW = 161;
67 float K_KP_PGUP = 162;
68 float K_KP_LEFTARROW = 163;
70 float K_KP_RIGHTARROW = 165;
72 float K_KP_DOWNARROW = 167;
73 float K_KP_PGDN = 168;
74 float K_KP_ENTER = 169;
77 float K_KP_SLASH = 172;
78 float K_KP_MINUS = 173;
79 float K_KP_PLUS = 174;
92 // aux keys are for multi-buttoned joysticks to generate so they can use
93 // the normal binding process
128 float K_MWHEELDOWN = 239;
129 float K_MWHEELUP = 240;
132 // mouse buttons generate virtual keys
134 float K_MOUSE1 = 241;
135 float K_MOUSE2 = 242;
136 float K_MOUSE3 = 243;
137 // LordHavoc: thanks to backslash for this MOUSE4 and MOUSE5 code,
138 // LordHavoc: however I renumbered it differently and added MOUSE6 through MOUSE10
139 /* backslash :: imouse explorer buttons */
140 float K_MOUSE4 = 244;
141 float K_MOUSE5 = 245;
142 /* backslash :: renumber everything that follows so that the mouse4/5 buttons can be squeezed in */
143 // LordHavoc: added these for completeness
144 float K_MOUSE6 = 246;
145 float K_MOUSE7 = 247;
146 float K_MOUSE8 = 248;
147 float K_MOUSE9 = 249;
148 float K_MOUSE10 = 250;
150 ///////////////////////////
151 // key dest constants
155 float KEY_UNKNOWN = 3;
157 ///////////////////////////
161 float FILE_APPEND = 1;
162 float FILE_WRITE = 2;
164 ///////////////////////////
165 // logical constants (just for completeness)
170 ///////////////////////////
176 ///////////////////////////
179 float MSG_BROADCAST = 0; // unreliable to all
180 float MSG_ONE = 1; // reliable to one (msg_entity)
181 float MSG_ALL = 2; // reliable to all
182 float MSG_INIT = 3; // write to the init string
184 /////////////////////////////
185 // mouse target constants
190 /////////////////////////
191 // client state constants
193 float CS_DEDICATED = 0;
194 float CS_DISCONNECTED = 1;
195 float CS_CONNECTED = 2;
197 ///////////////////////////
200 float DRAWFLAG_NORMAL = 0;
201 float DRAWFLAG_ADDITIVE = 1;
202 float DRAWFLAG_MODULATE = 2;
203 float DRAWFLAG_2XMODULATE = 3;
205 ///////////////////////////
206 // null entity (actually it is the same like the world entity)
210 ///////////////////////////
214 float ERR_CANNOTOPEN = -1; // fopen
215 float ERR_NOTENOUGHFILEHANDLES = -2; // fopen
216 float ERR_INVALIDMODE = -3; // fopen
217 float ERR_BADFILENAME = -4; // fopen
221 float ERR_NULLSTRING = -1;
222 float ERR_BADDRAWFLAG = -2;
223 float ERR_BADSCALE = -3;
224 float ERR_BADSIZE = ERR_BADSCALE;
225 float ERR_NOTCACHED = -4;
227 /* not supported at the moment
228 ///////////////////////////
231 float OS_WINDOWS = 0;