]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
WGL doesn't work with ctrl+alt+key, will look into that
authornyov <nyov@nexnode.net>
Sat, 28 Apr 2012 21:30:44 +0000 (23:30 +0200)
committernyov <nyov@nexnode.net>
Sat, 28 Apr 2012 21:30:44 +0000 (23:30 +0200)
keys.c

diff --git a/keys.c b/keys.c
index 8108c2a68e1f746e0b1f1a123676d3d675fa4009..367a57a09ab8c3b3c03912ffad0f0116d6a8c977 100644 (file)
--- a/keys.c
+++ b/keys.c
@@ -1772,6 +1772,7 @@ Key_Message (int key, int unicode)
 
        // ctrl+key generates an ascii value < 32 and shows a char from the charmap
        // nyov: modified to only work as ctrl+alt+key
+       // (note: doesn't work in windows WGL, ctrl+alt+key is always 0, thanks to terencehill for noticing)
        if (unicode > 0 && unicode < 32 && utf8_enable.integer && keydown[K_ALT])
                unicode = 0xE000 + unicode;