]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
print unknown keys a little differently, to avoid escape characters
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 21 Dec 2009 09:09:54 +0000 (09:09 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 21 Dec 2009 09:09:54 +0000 (09:09 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9628 d7cf8633-e32d-0410-b094-e92efae38249

keys.c

diff --git a/keys.c b/keys.c
index f01ee9f0d01d49c590bef6a8364542d7a115e529..a2878c0c5cd8a42bc39ae7a6741b85a920d1c7ed 100644 (file)
--- 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;