From: havoc Date: Mon, 21 Dec 2009 09:09:54 +0000 (+0000) Subject: print unknown keys a little differently, to avoid escape characters X-Git-Tag: xonotic-v0.1.0preview~1020 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2fdfc8c8fd2715ed16ad6f45d644720abc116e94;p=xonotic%2Fdarkplaces.git print unknown keys a little differently, to avoid escape characters git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9628 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/keys.c b/keys.c index f01ee9f0..a2878c0c 100644 --- a/keys.c +++ b/keys.c @@ -1397,7 +1397,7 @@ Key_Event (int key, int ascii, qboolean down) 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 : ""); + Con_Printf("Key_Event(%i, '%c', %s) keydown %i bind \"%s\"\n", key, ascii ? ascii : '?', down ? "down" : "up", keydown[key], bind ? bind : ""); if(key_consoleactive) keydest = key_console;