r1462 - trunk/code/sdl

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Aug 28 19:08:54 EDT 2008


Author: tma
Date: 2008-08-28 19:08:54 -0400 (Thu, 28 Aug 2008)
New Revision: 1462

Modified:
   trunk/code/sdl/sdl_input.c
Log:
* Better condition to test whether to use the character or the key


Modified: trunk/code/sdl/sdl_input.c
===================================================================
--- trunk/code/sdl/sdl_input.c	2008-08-28 22:05:34 UTC (rev 1461)
+++ trunk/code/sdl/sdl_input.c	2008-08-28 23:08:54 UTC (rev 1462)
@@ -146,8 +146,8 @@
 		}
 	}
 
-	// If key is ASCII, use the character instead
-	if( key >= K_SPACE && key < K_BACKSPACE )
+	// Use the character in preference to the key name
+	if( *buf )
 		key = 0;
 
 	for( i = 0; i < numConsoleKeys; i++ )




More information about the quake3-commits mailing list