mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +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;
|
sc = scancode & 0x7f;
|
||||||
key = scantokey[0][sc];
|
key = scantokey[0][sc];
|
||||||
if ((shifts & 0xc)) {
|
if ((shifts & 0x03)) {
|
||||||
ascii = scantokey[2][sc];
|
ascii = scantokey[2][sc];
|
||||||
} else if (shifts & 3) {
|
} else if (shifts & 3) {
|
||||||
ascii = scantokey[1][sc];
|
ascii = scantokey[1][sc];
|
||||||
|
|
|
@ -656,7 +656,7 @@ MapKey (unsigned int keycode, int press, int *k, int *u)
|
||||||
else
|
else
|
||||||
key = scantokey[scan];
|
key = scantokey[scan];
|
||||||
|
|
||||||
if (shifts & 0x0c) {
|
if (shifts & 0x03) {
|
||||||
if (extended)
|
if (extended)
|
||||||
uc = shift_ext_scantokey[scan];
|
uc = shift_ext_scantokey[scan];
|
||||||
else
|
else
|
||||||
|
@ -692,8 +692,8 @@ MapKey (unsigned int keycode, int press, int *k, int *u)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
Con_DPrintf ("%08x %02x %04x %c\n", keycode, scan, key,
|
Con_DPrintf ("%08x %d %02x %02lx %04x %c\n", keycode, press, scan, shifts,
|
||||||
uc > 32 && uc < 127 ? uc : '#');
|
key, uc > 32 && uc < 127 ? uc : '#');
|
||||||
*k = key;
|
*k = key;
|
||||||
*u = uc;
|
*u = uc;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue