From: divverent Date: Sun, 26 Jun 2011 09:09:15 +0000 (+0000) Subject: add a workaround to make the ^ key work on some X.org systems X-Git-Tag: xonotic-v0.6.0~163^2~333 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=61227089d1b7eaf494a1a046081d85c58581951e;p=xonotic%2Fdarkplaces.git add a workaround to make the ^ key work on some X.org systems git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11217 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/vid_glx.c b/vid_glx.c index 2586beb3..9f142bb9 100644 --- a/vid_glx.c +++ b/vid_glx.c @@ -278,9 +278,9 @@ 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_asciicircum: *ascii = key = '^'; break; // for some reason, XLookupString returns "" on this one for Grunt|2 - case XK_section: key = '~'; break; + case XK_section: *ascii = key = '~'; break; default: if (keysym < 32)