From: havoc Date: Mon, 27 Aug 2007 11:10:41 +0000 (+0000) Subject: added a developer 1000 print for every key event received, attempting to X-Git-Tag: xonotic-v0.1.0preview~2934 X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=e93385631fb31028b8879b4e77b21d5ad95969c8 added a developer 1000 print for every key event received, attempting to figure out why while watching the demo loop you can press the 1 key and then escape and escape does nothing, pressing other keys reenables escape again git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7541 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/keys.c b/keys.c index 6e61c438..02a1a0d9 100644 --- a/keys.c +++ b/keys.c @@ -880,6 +880,9 @@ Key_Event (int key, char ascii, qboolean down) if (!bind) bind = keybindings[key_bmap2][key]; + if (developer.integer >= 1000) + Con_Printf("Key_Event(%i, '%c', %s) keydown %i bind \"%s\"\n", key, ascii, down ? "down" : "up", keydown[key], bind ? bind : ""); + if(key_dest == key_game) { q = CL_VM_InputEvent(!down, key);