mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-29 20:20:43 +00:00
`fix' for new input system
still broken functionally :/
This commit is contained in:
parent
0d2b727103
commit
373792ff69
1 changed files with 7 additions and 7 deletions
|
@ -105,30 +105,30 @@ IN_LL_SendKeyEvents (void)
|
|||
switch (k) {
|
||||
case '\r':
|
||||
case '\n':
|
||||
k = K_ENTER;
|
||||
k = K_RETURN;
|
||||
break;
|
||||
case '\033':
|
||||
if (read(0, buf, 2) != 2)
|
||||
break;
|
||||
switch (buf[1]) {
|
||||
case 'A':
|
||||
k = K_UPARROW;
|
||||
k = K_UP;
|
||||
break;
|
||||
case 'B':
|
||||
k = K_DOWNARROW;
|
||||
k = K_DOWN;
|
||||
break;
|
||||
case 'C':
|
||||
k = K_RIGHTARROW;
|
||||
k = K_RIGHT;
|
||||
break;
|
||||
case 'D':
|
||||
k = K_LEFTARROW;
|
||||
k = K_LEFT;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
down = 1;
|
||||
Key_Event(k, -1, down);
|
||||
Key_Event(k, -1, !down);
|
||||
Key_Event(k, buf[0], down);
|
||||
Key_Event(k, buf[0], !down);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue