string(string info, string key, string value, ...) infoadd = #226;
string(string in) uri_escape = #510;
+float stringtokeynum(string keyname) = #341;
string keynumtostring(float keynum) = #520;
string findkeysforcommand(string command) = #521;
if(!hud_configure)
return false;
+ // allow console bind to work
+ string con_keys;
+ float keys;
+ con_keys = findkeysforcommand("toggleconsole");
+ keys = tokenize(con_keys);
+
+ float hit_con_bind, i;
+ for (i = 0; i < keys; ++i)
+ {
+ if(nPrimary == stof(argv(i)))
+ hit_con_bind = 1;
+ }
+
prevMouseClicked = mouseClicked;
if(nPrimary == K_MOUSE1)
{
else if(nPrimary == K_ESCAPE)
cvar_set("_hud_configure", "0");
+ else if(hit_con_bind)
+ return false;
+
return true; // Suppress ALL other input
}