mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-25 05:41:42 +00:00
Merge branch 'fix-command-line-input' into 'next'
Fix input via command line/terminal not working See merge request STJr/SRB2!2296
This commit is contained in:
commit
dfd47733e2
2 changed files with 2 additions and 1 deletions
|
@ -1339,6 +1339,8 @@ boolean CON_Responder(event_t *ev)
|
|||
|
||||
if (input_sel != input_cur)
|
||||
CON_InputDelSelection();
|
||||
if (ev->type == ev_console)
|
||||
CON_InputAddChar(key);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -652,7 +652,6 @@ void I_GetConsoleEvents(void)
|
|||
else if (tty_con.cursor < sizeof (tty_con.buffer))
|
||||
{
|
||||
// push regular character
|
||||
ev.type = ev_text;
|
||||
ev.key = tty_con.buffer[tty_con.cursor] = key;
|
||||
tty_con.cursor++;
|
||||
// print the current line (this is differential)
|
||||
|
|
Loading…
Reference in a new issue