mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
fix a really stupid brainfart that caused shift states to not work
This commit is contained in:
parent
b6ad2223d2
commit
fa95bd35aa
2 changed files with 4 additions and 4 deletions
|
@ -86,7 +86,7 @@ keyhandler (int scancode, int state)
|
|||
|
||||
sc = scancode & 0x7f;
|
||||
key = scantokey[0][sc];
|
||||
if ((shifts & 0xc)) {
|
||||
if ((shifts & 0x03)) {
|
||||
ascii = scantokey[2][sc];
|
||||
} else if (shifts & 3) {
|
||||
ascii = scantokey[1][sc];
|
||||
|
|
|
@ -656,7 +656,7 @@ MapKey (unsigned int keycode, int press, int *k, int *u)
|
|||
else
|
||||
key = scantokey[scan];
|
||||
|
||||
if (shifts & 0x0c) {
|
||||
if (shifts & 0x03) {
|
||||
if (extended)
|
||||
uc = shift_ext_scantokey[scan];
|
||||
else
|
||||
|
@ -692,8 +692,8 @@ MapKey (unsigned int keycode, int press, int *k, int *u)
|
|||
break;
|
||||
}
|
||||
|
||||
Con_DPrintf ("%08x %02x %04x %c\n", keycode, scan, key,
|
||||
uc > 32 && uc < 127 ? uc : '#');
|
||||
Con_DPrintf ("%08x %d %02x %02lx %04x %c\n", keycode, press, scan, shifts,
|
||||
key, uc > 32 && uc < 127 ? uc : '#');
|
||||
*k = key;
|
||||
*u = uc;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue