mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-03-10 12:01:43 +00:00
in_sdl.c: rewrite TEXTINPUT handling a bit.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1063 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
4f4ed85552
commit
46e003557a
1 changed files with 4 additions and 4 deletions
|
@ -606,10 +606,10 @@ void IN_SendKeyEvents (void)
|
||||||
// (shift for uppercase, etc.) for us.
|
// (shift for uppercase, etc.) for us.
|
||||||
if (!Key_ConsoleBindable(lastKeyDown))
|
if (!Key_ConsoleBindable(lastKeyDown))
|
||||||
{
|
{
|
||||||
unsigned char *ch;
|
int i;
|
||||||
for (ch = (unsigned char *)event.text.text; ch[0] != 0; ch++)
|
for (i = 0; event.text.text[i]; i++)
|
||||||
if ((ch[0] & 0x80) == 0)
|
if ((event.text.text[i] & 0x80) == 0)
|
||||||
Char_Event (ch[0]);
|
Char_Event (event.text.text[i]);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue