mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2024-12-03 09:22:45 +00:00
try to fix console deadkey problem
This commit is contained in:
parent
9aa63e4074
commit
5001b49841
1 changed files with 5 additions and 8 deletions
|
@ -880,16 +880,13 @@ sysEvent_t Sys_GetEvent()
|
|||
|
||||
if( key == 0 )
|
||||
{
|
||||
unsigned char c;
|
||||
|
||||
|
||||
unsigned char uc = ev.key.keysym.unicode & 0xff;
|
||||
// check if its an unmapped console key
|
||||
if( ev.key.keysym.unicode == ( c = Sys_GetConsoleKey( false ) ) )
|
||||
if( uc == Sys_GetConsoleKey( false ) || uc == Sys_GetConsoleKey( true ) )
|
||||
{
|
||||
key = c;
|
||||
}
|
||||
else if( ev.key.keysym.unicode == ( c = Sys_GetConsoleKey( true ) ) )
|
||||
{
|
||||
key = c;
|
||||
key = K_GRAVE;
|
||||
c = K_BACKSPACE; // bad hack to get empty console inputline..
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue