r83 - trunk/code/unix
    DONOTREPLY at icculus.org 
    DONOTREPLY at icculus.org
       
    Sun Sep  4 12:40:55 EDT 2005
    
    
  
Author: icculus
Date: 2005-09-04 12:40:55 -0400 (Sun, 04 Sep 2005)
New Revision: 83
Modified:
   trunk/code/unix/sdl_glimp.c
Log:
Fixed all lowercase input (Bugzilla #2364).
Modified: trunk/code/unix/sdl_glimp.c
===================================================================
--- trunk/code/unix/sdl_glimp.c	2005-09-04 15:30:26 UTC (rev 82)
+++ trunk/code/unix/sdl_glimp.c	2005-09-04 16:40:55 UTC (rev 83)
@@ -221,9 +221,14 @@
       char ch = (char) keysym->unicode;
       if (ch == '~')
         *key = '~'; // console HACK
-      else if (ch >= 'A' && ch <= 'Z')
-        ch = ch - 'A' + 'a';
 
+      // The X11 driver converts to lowercase, but apparently we shouldn't.
+      //  There's possibly somewhere else where they covert back. Passing
+      //  uppercase to the engine works fine and fixes all-lower input.
+      //  (https://bugzilla.icculus.org/show_bug.cgi?id=2364)  --ryan.
+      //else if (ch >= 'A' && ch <= 'Z')
+      //  ch = ch - 'A' + 'a';
+
       buf[0] = ch;
   }
   else if(keysym->unicode == 8) // ctrl-h
    
    
More information about the quake3-commits
mailing list