r1453 - trunk/code/sdl

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Aug 22 07:16:37 EDT 2008


Author: tma
Date: 2008-08-22 07:16:35 -0400 (Fri, 22 Aug 2008)
New Revision: 1453

Modified:
   trunk/code/sdl/sdl_input.c
Log:
* Prevent ~ from generating a character
* Fix backspace on OS X (I hope)


Modified: trunk/code/sdl/sdl_input.c
===================================================================
--- trunk/code/sdl/sdl_input.c	2008-08-21 23:29:09 UTC (rev 1452)
+++ trunk/code/sdl/sdl_input.c	2008-08-22 11:16:35 UTC (rev 1453)
@@ -234,12 +234,18 @@
 					*key = CTRL('h');
 					*buf = *key;
 				}
+				else
+					*buf = ch;
 				break;
 
 			default: *buf = ch; break;
 		}
 	}
 
+	// Never allow a '~' SE_CHAR event to be generated
+	if( *key == '~' )
+		*buf = '\0';
+
 	if( in_keyboardDebug->integer )
 		IN_PrintKey( keysym, *key, down );
 




More information about the quake3-commits mailing list