]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
work around broken XLookupKeysym returning "" on XK_asciicircum
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 26 Jun 2011 09:09:13 +0000 (09:09 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 26 Jun 2011 09:09:13 +0000 (09:09 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11216 d7cf8633-e32d-0410-b094-e92efae38249

vid_glx.c

index 6773b86ca79b23898afd96cffe3292c448dea49d..2586beb30311f74697bc0c34d7a0b88ff0b3dfea 100644 (file)
--- a/vid_glx.c
+++ b/vid_glx.c
@@ -278,6 +278,8 @@ static int XLateKey(XKeyEvent *ev, Uchar *ascii)
                case XK_KP_Subtract: key = K_KP_MINUS; break;
                case XK_KP_Divide: key = K_KP_SLASH; break;
 
+               case XK_asciicircum:    key = '^'; break; // for some reason, XLookupString returns "" on this one for Grunt|2
+
                case XK_section:        key = '~'; break;
 
                default: