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
129 // mouse buttons generate virtual keys
131 float K_MOUSE1 = 512;
132 float K_MOUSE2 = 513;
133 float K_MOUSE3 = 514;
134 float K_MOUSE4 = 515;
135 float K_MOUSE5 = 516;
136 float K_MOUSE6 = 517;
137 float K_MOUSE7 = 518;
138 float K_MOUSE8 = 519;
139 float K_MOUSE9 = 520;
140 float K_MOUSE10 = 521;
142 float K_MWHEELDOWN = K_MOUSE4;
143 float K_MWHEELUP = K_MOUSE5;
145 ///////////////////////////
146 // key dest constants
150 float KEY_UNKNOWN = 3;
152 ///////////////////////////
156 float FILE_APPEND = 1;
157 float FILE_WRITE = 2;
159 ///////////////////////////
160 // logical constants (just for completeness)
165 ///////////////////////////
171 ///////////////////////////
174 float MSG_BROADCAST = 0; // unreliable to all
175 float MSG_ONE = 1; // reliable to one (msg_entity)
176 float MSG_ALL = 2; // reliable to all
177 float MSG_INIT = 3; // write to the init string
179 /////////////////////////////
180 // mouse target constants
185 /////////////////////////
186 // client state constants
188 float CS_DEDICATED = 0;
189 float CS_DISCONNECTED = 1;
190 float CS_CONNECTED = 2;
192 ///////////////////////////
195 float DRAWFLAG_NORMAL = 0;
196 float DRAWFLAG_ADDITIVE = 1;
197 float DRAWFLAG_MODULATE = 2;
198 float DRAWFLAG_2XMODULATE = 3;
201 ///////////////////////////
205 float CVAR_NOTIFY = 2;
206 float CVAR_READONLY = 4;
208 ///////////////////////////
209 // server list constants
211 float SLIST_CNAME = 0;
212 float SLIST_LINE1 = 1;
213 float SLIST_LINE2 = 2;
215 float SLIST_HOSTCACHECOUNT = 0;
216 float SLIST_MASTERQUERYCOUNT = 1;
217 float SLIST_MASTERREPLYCOUNT = 2;
218 float SLIST_SERVERQUERYCOUNT = 3;
219 float SLIST_SERVERREPLYCOUNT = 4;
221 ///////////////////////////
222 // null entity (actually it is the same like the world entity)
226 ///////////////////////////
230 float ERR_CANNOTOPEN = -1; // fopen
231 float ERR_NOTENOUGHFILEHANDLES = -2; // fopen
232 float ERR_INVALIDMODE = -3; // fopen
233 float ERR_BADFILENAME = -4; // fopen
237 float ERR_NULLSTRING = -1;
238 float ERR_BADDRAWFLAG = -2;
239 float ERR_BADSCALE = -3;
240 float ERR_BADSIZE = ERR_BADSCALE;
241 float ERR_NOTCACHED = -4;
243 /* not supported at the moment
244 ///////////////////////////
247 float OS_WINDOWS = 0;