in_sdl.c: rewrite TEXTINPUT handling a bit.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1063 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
svdijk 2014-09-23 02:15:46 +00:00
parent 82303ddd7e
commit 1951afb09c

View file

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