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:
svdijk 2014-10-08 20:03:05 +00:00
parent ab973d9f14
commit 9bb2c0d702

View file

@ -629,10 +629,10 @@ void IN_SendKeyEvents (void)
// (shift for uppercase, etc.) for us.
if (!Key_IgnoreTextInput(lastKeyDown))
{
int i;
for (i = 0; event.text.text[i]; i++)
if ((event.text.text[i] & ~0x7F) == 0)
Char_Event (event.text.text[i]);
unsigned char *ch;
for (ch = (unsigned char *)event.text.text; *ch; ch++)
if ((*ch & ~0x7F) == 0)
Char_Event (*ch);
}
break;
#endif