From: divverent Date: Sun, 26 Jun 2011 09:09:13 +0000 (+0000) Subject: work around broken XLookupKeysym returning "" on XK_asciicircum X-Git-Tag: xonotic-v0.6.0~163^2~334 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c0063f75ee03156d5bfc12efbad687e4863db964;p=xonotic%2Fdarkplaces.git work around broken XLookupKeysym returning "" on XK_asciicircum git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11216 d7cf8633-e32d-0410-b094-e92efae38249 --- 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: