Minimal implementation of textinput events for x11. It only works for latin-1.

This commit is contained in:
Bob Pendleton
2008-01-15 22:37:17 +00:00
parent 4a1d83aef7
commit 16c4fcc95c
6 changed files with 38 additions and 11 deletions

View File

@@ -89,6 +89,11 @@ PrintKey(SDL_keysym * sym, int pressed)
printf("\n");
}
static void
PrintText(char *text)
{
}
int
main(int argc, char *argv[])
{
@@ -139,6 +144,9 @@ main(int argc, char *argv[])
case SDL_KEYUP:
PrintKey(&event.key.keysym, 0);
break;
case SDL_TEXTINPUT:
PrintText(event.text.text);
break;
case SDL_MOUSEBUTTONDOWN:
/* Any button press quits the app... */
case SDL_QUIT: