mirror of
https://github.com/ioquake/ioq3.git
synced 2025-02-24 04:21:31 +00:00
* Do not cull non-ascii keyboard chars at the SDL level any more, these are
handled in cl_keys.c. (This fixes ctrl-c not working).
This commit is contained in:
parent
2e19bdfb5d
commit
cb76ec0f2d
1 changed files with 11 additions and 18 deletions
|
@ -252,11 +252,7 @@ static const char *XLateKey(SDL_keysym *keysym, int *key)
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (*key == K_BACKSPACE)
|
if( keysym->unicode <= 127 ) // maps to ASCII?
|
||||||
buf[0] = 8;
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (keysym->unicode <= 255 && keysym->unicode >= 20) // maps to ASCII?
|
|
||||||
{
|
{
|
||||||
char ch = (char) keysym->unicode;
|
char ch = (char) keysym->unicode;
|
||||||
if (ch == '~')
|
if (ch == '~')
|
||||||
|
@ -271,9 +267,6 @@ static const char *XLateKey(SDL_keysym *keysym, int *key)
|
||||||
|
|
||||||
buf[0] = ch;
|
buf[0] = ch;
|
||||||
}
|
}
|
||||||
else if(keysym->unicode == 8) // ctrl-h
|
|
||||||
buf[0] = 8;
|
|
||||||
}
|
|
||||||
|
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue