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:
Sander van Dijk 2014-09-23 02:15:46 +00:00
parent 4f4ed85552
commit 46e003557a

View file

@ -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