mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-10 23:31:50 +00:00
Merge branch 'console-key-breakfast' into 'master'
Console key breakfast See merge request STJr/SRB2!226
This commit is contained in:
commit
9843d60e13
1 changed files with 4 additions and 3 deletions
|
@ -842,8 +842,9 @@ boolean CON_Responder(event_t *ev)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// don't eat the key
|
// ...why shouldn't it eat the key? if it doesn't, it just means you
|
||||||
return false;
|
// can control Sonic from the console, which is silly
|
||||||
|
return true; //return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// command completion forward (tab) and backward (shift-tab)
|
// command completion forward (tab) and backward (shift-tab)
|
||||||
|
@ -1042,7 +1043,7 @@ boolean CON_Responder(event_t *ev)
|
||||||
|
|
||||||
// enter a char into the command prompt
|
// enter a char into the command prompt
|
||||||
if (key < 32 || key > 127)
|
if (key < 32 || key > 127)
|
||||||
return false;
|
return true; // even if key can't be printed, eat it anyway
|
||||||
|
|
||||||
// add key to cmd line here
|
// add key to cmd line here
|
||||||
if (key >= 'A' && key <= 'Z' && !shiftdown) //this is only really necessary for dedicated servers
|
if (key >= 'A' && key <= 'Z' && !shiftdown) //this is only really necessary for dedicated servers
|
||||||
|
|
Loading…
Reference in a new issue