mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-13 00:34:11 +00:00
in_sdl.c: rewrite TEXTINPUT handling a bit again.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1094 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
ab973d9f14
commit
9bb2c0d702
1 changed files with 4 additions and 4 deletions
|
@ -629,10 +629,10 @@ void IN_SendKeyEvents (void)
|
||||||
// (shift for uppercase, etc.) for us.
|
// (shift for uppercase, etc.) for us.
|
||||||
if (!Key_IgnoreTextInput(lastKeyDown))
|
if (!Key_IgnoreTextInput(lastKeyDown))
|
||||||
{
|
{
|
||||||
int i;
|
unsigned char *ch;
|
||||||
for (i = 0; event.text.text[i]; i++)
|
for (ch = (unsigned char *)event.text.text; *ch; ch++)
|
||||||
if ((event.text.text[i] & ~0x7F) == 0)
|
if ((*ch & ~0x7F) == 0)
|
||||||
Char_Event (event.text.text[i]);
|
Char_Event (*ch);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue