1 #pragma flag off fastarrays // make dp behave with new fteqcc versions. remove when dp bug with fteqcc fastarrays is fixed
3 //////////////////////////////////////////////////////////
8 /////////////////////////////////////////////////////////
10 /////////////////////////////////////////////////////////
13 /////////////////////////////////////////////////////////
15 /////////////////////////////////////////////////////////
19 void(float keynr, float ascii) m_keydown;
21 void() m_display; // old NG Menu
23 void() m_hide; // old NG Menu
26 /////////////////////////////////////////////////////////
28 ///////////////////////////
32 // these are the key numbers that should be passed to Key_Event
39 // normal keys should be passed as lowercased ascii
41 float K_BACKSPACE = 127;
42 float K_UPARROW = 128;
43 float K_DOWNARROW = 129;
44 float K_LEFTARROW = 130;
45 float K_RIGHTARROW = 131;
69 float K_KP_HOME = 160;
70 float K_KP_UPARROW = 161;
71 float K_KP_PGUP = 162;
72 float K_KP_LEFTARROW = 163;
74 float K_KP_RIGHTARROW = 165;
76 float K_KP_DOWNARROW = 167;
77 float K_KP_PGDN = 168;
78 float K_KP_ENTER = 169;
81 float K_KP_SLASH = 172;
82 float K_KP_MINUS = 173;
83 float K_KP_PLUS = 174;
96 // aux keys are for multi-buttoned joysticks to generate so they can use
97 // the normal binding process
133 // mouse buttons generate virtual keys
135 float K_MOUSE1 = 512;
136 float K_MOUSE2 = 513;
137 float K_MOUSE3 = 514;
138 float K_MWHEELUP = 515;
139 float K_MWHEELDOWN = 516;
140 float K_MOUSE4 = 517;
141 float K_MOUSE5 = 518;
142 float K_MOUSE6 = 519;
143 float K_MOUSE7 = 520;
144 float K_MOUSE8 = 521;
145 float K_MOUSE9 = 522;
146 float K_MOUSE10 = 523;
147 float K_MOUSE11 = 524;
148 float K_MOUSE12 = 525;
149 float K_MOUSE13 = 526;
150 float K_MOUSE14 = 527;
151 float K_MOUSE15 = 528;
152 float K_MOUSE16 = 529;
154 ///////////////////////////
155 // key dest constants
157 float KEY_UNKNOWN = -1;
160 float KEY_MENU_GRABBED = 3;
162 ///////////////////////////
166 float FILE_APPEND = 1;
167 float FILE_WRITE = 2;
169 ///////////////////////////
170 // logical constants (just for completeness)
175 ///////////////////////////
181 ///////////////////////////
184 float MSG_BROADCAST = 0; // unreliable to all
185 float MSG_ONE = 1; // reliable to one (msg_entity)
186 float MSG_ALL = 2; // reliable to all
187 float MSG_INIT = 3; // write to the init string
189 /////////////////////////////
190 // mouse target constants
195 /////////////////////////
196 // client state constants
198 float CS_DEDICATED = 0;
199 float CS_DISCONNECTED = 1;
200 float CS_CONNECTED = 2;
202 ///////////////////////////
205 float DRAWFLAG_NORMAL = 0;
206 float DRAWFLAG_ADDITIVE = 1;
207 float DRAWFLAG_MODULATE = 2;
208 float DRAWFLAG_2XMODULATE = 3;
211 ///////////////////////////
215 float CVAR_NOTIFY = 2;
216 float CVAR_READONLY = 4;
218 ///////////////////////////
219 // server list constants
221 float SLIST_HOSTCACHEVIEWCOUNT = 0;
222 float SLIST_HOSTCACHETOTALCOUNT = 1;
223 float SLIST_MASTERQUERYCOUNT = 2;
224 float SLIST_MASTERREPLYCOUNT = 3;
225 float SLIST_SERVERQUERYCOUNT = 4;
226 float SLIST_SERVERREPLYCOUNT = 5;
227 float SLIST_SORTFIELD = 6;
228 float SLIST_SORTDESCENDING = 7;
230 float SLIST_LEGACY_LINE1 = 1024;
231 float SLIST_LEGACY_LINE2 = 1025;
233 float SLIST_TEST_CONTAINS = 0;
234 float SLIST_TEST_NOTCONTAIN = 1;
235 float SLIST_TEST_LESSEQUAL = 2;
236 float SLIST_TEST_LESS = 3;
237 float SLIST_TEST_EQUAL = 4;
238 float SLIST_TEST_GREATER = 5;
239 float SLIST_TEST_GREATEREQUAL = 6;
240 float SLIST_TEST_NOTEQUAL = 7;
242 float SLIST_MASK_AND = 0;
243 float SLIST_MASK_OR = 512;
245 float NET_CURRENTPROTOCOL = 3;
247 ////////////////////////////////
248 // cinematic action constants
252 float CINE_PAUSE = 3;
253 float CINE_FIRSTFRAME = 4;
254 float CINE_RESETONWAKEUP= 5;
256 ///////////////////////////
257 // null entity (actually it is the same like the world entity)
261 ///////////////////////////
265 float ERR_CANNOTOPEN = -1; // fopen
266 float ERR_NOTENOUGHFILEHANDLES = -2; // fopen
267 float ERR_INVALIDMODE = -3; // fopen
268 float ERR_BADFILENAME = -4; // fopen
272 float ERR_NULLSTRING = -1;
273 float ERR_BADDRAWFLAG = -2;
274 float ERR_BADSCALE = -3;
275 //float ERR_BADSIZE = ERR_BADSCALE;
276 float ERR_NOTCACHED = -4;
278 float GECKO_BUTTON_DOWN = 0;
279 float GECKO_BUTTON_UP = 1;
280 // either use down and up or just press but not all of them!
281 float GECKO_BUTTON_PRESS = 2;
282 // use this for mouse events if needed?
283 float GECKO_BUTTON_DOUBLECLICK = 3;
285 /* not supported at the moment
286 ///////////////////////////
289 float OS_WINDOWS = 0;
294 float drawfont; // set this to one of the following for draw text routines to work with another font
295 float FONT_DEFAULT = 0;
296 float FONT_CONSOLE = 1;
298 float FONT_NOTIFY = 3;
300 float FONT_CENTERPRINT = 5;
301 float FONT_INFOBAR = 6;
303 float FONT_USER = 8; // add to this the index, like FONT_USER+3 = user3. At least 8 of them are supported.