From 7ef226e36839c9ca21df40f6ac5577c861be43fa Mon Sep 17 00:00:00 2001 From: divverent Date: Sun, 26 Jun 2011 09:09:13 +0000 Subject: [PATCH] work around broken XLookupKeysym returning "" on XK_asciicircum git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11216 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=c0063f75ee03156d5bfc12efbad687e4863db964 --- vid_glx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vid_glx.c b/vid_glx.c index 6773b86c..2586beb3 100644 --- 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: -- 2.39.2