1 //////////////////////////////////////////////////////////
6 /////////////////////////////////////////////////////////
8 /////////////////////////////////////////////////////////
11 /////////////////////////////////////////////////////////
13 /////////////////////////////////////////////////////////
17 void(float keynr, float ascii) m_keydown;
19 void() m_display; // old NG Menu
21 void() m_hide; // old NG Menu
24 /////////////////////////////////////////////////////////
26 ///////////////////////////
30 // these are the key numbers that should be passed to Key_Event
37 // normal keys should be passed as lowercased ascii
39 float K_BACKSPACE = 127;
40 float K_UPARROW = 128;
41 float K_DOWNARROW = 129;
42 float K_LEFTARROW = 130;
43 float K_RIGHTARROW = 131;
67 float K_KP_HOME = 160;
68 float K_KP_UPARROW = 161;
69 float K_KP_PGUP = 162;
70 float K_KP_LEFTARROW = 163;
72 float K_KP_RIGHTARROW = 165;
74 float K_KP_DOWNARROW = 167;
75 float K_KP_PGDN = 168;
76 float K_KP_ENTER = 169;
79 float K_KP_SLASH = 172;
80 float K_KP_MINUS = 173;
81 float K_KP_PLUS = 174;
94 // aux keys are for multi-buttoned joysticks to generate so they can use
95 // the normal binding process
131 // mouse buttons generate virtual keys
133 float K_MOUSE1 = 512;
134 float K_MOUSE2 = 513;
135 float K_MOUSE3 = 514;
136 float K_MOUSE4 = 515;
137 float K_MOUSE5 = 516;
138 float K_MOUSE6 = 517;
139 float K_MOUSE7 = 518;
140 float K_MOUSE8 = 519;
141 float K_MOUSE9 = 520;
142 float K_MOUSE10 = 521;
144 float K_MWHEELDOWN = K_MOUSE4;
145 float K_MWHEELUP = K_MOUSE5;
147 ///////////////////////////
148 // key dest constants
152 float KEY_UNKNOWN = 3;
154 ///////////////////////////
158 float FILE_APPEND = 1;
159 float FILE_WRITE = 2;
161 ///////////////////////////
162 // logical constants (just for completeness)
167 ///////////////////////////
173 ///////////////////////////
176 float MSG_BROADCAST = 0; // unreliable to all
177 float MSG_ONE = 1; // reliable to one (msg_entity)
178 float MSG_ALL = 2; // reliable to all
179 float MSG_INIT = 3; // write to the init string
181 /////////////////////////////
182 // mouse target constants
187 /////////////////////////
188 // client state constants
190 float CS_DEDICATED = 0;
191 float CS_DISCONNECTED = 1;
192 float CS_CONNECTED = 2;
194 ///////////////////////////
197 float DRAWFLAG_NORMAL = 0;
198 float DRAWFLAG_ADDITIVE = 1;
199 float DRAWFLAG_MODULATE = 2;
200 float DRAWFLAG_2XMODULATE = 3;
203 ///////////////////////////
207 float CVAR_NOTIFY = 2;
208 float CVAR_READONLY = 4;
210 ///////////////////////////
211 // server list constants
213 float SLIST_HOSTCACHEVIEWCOUNT = 0;
214 float SLIST_HOSTCACHETOTALCOUNT = 1;
215 float SLIST_MASTERQUERYCOUNT = 2;
216 float SLIST_MASTERREPLYCOUNT = 3;
217 float SLIST_SERVERQUERYCOUNT = 4;
218 float SLIST_SERVERREPLYCOUNT = 5;
219 float SLIST_SORTFIELD = 6;
220 float SLIST_SORTDESCENDING = 7;
222 float SLIST_LEGACY_LINE1 = 1024;
223 float SLIST_LEGACY_LINE2 = 1025;
225 float SLIST_TEST_CONTAINS = 0;
226 float SLIST_TEST_NOTCONTAIN = 1;
227 float SLIST_TEST_LESSEQUAL = 2;
228 float SLIST_TEST_LESS = 3;
229 float SLIST_TEST_EQUAL = 4;
230 float SLIST_TEST_GREATER = 5;
231 float SLIST_TEST_GREATEREQUAL = 6;
232 float SLIST_TEST_NOTEQUAL = 7;
234 float SLIST_MASK_AND = 0;
235 float SLIST_MASK_OR = 512;
237 float NET_CURRENTPROTOCOL = 3;
239 ////////////////////////////////
240 // cinematic action constants
244 float CINE_PAUSE = 3;
245 float CINE_FIRSTFRAME = 4;
246 float CINE_RESETONWAKEUP= 5;
248 ///////////////////////////
249 // null entity (actually it is the same like the world entity)
253 ///////////////////////////
257 float ERR_CANNOTOPEN = -1; // fopen
258 float ERR_NOTENOUGHFILEHANDLES = -2; // fopen
259 float ERR_INVALIDMODE = -3; // fopen
260 float ERR_BADFILENAME = -4; // fopen
264 float ERR_NULLSTRING = -1;
265 float ERR_BADDRAWFLAG = -2;
266 float ERR_BADSCALE = -3;
267 float ERR_BADSIZE = ERR_BADSCALE;
268 float ERR_NOTCACHED = -4;
270 /* not supported at the moment
271 ///////////////////////////
274 float OS_WINDOWS = 0;