test/checkkeys.c
changeset 2300 c97ad1abe05b
parent 2295 dbc6d1893869
child 2303 d87417504c75
     1.1 --- a/test/checkkeys.c	Sat Jan 12 18:07:06 2008 +0000
     1.2 +++ b/test/checkkeys.c	Tue Jan 15 22:37:17 2008 +0000
     1.3 @@ -89,6 +89,11 @@
     1.4      printf("\n");
     1.5  }
     1.6  
     1.7 +static void
     1.8 +PrintText(char *text)
     1.9 +{
    1.10 +}
    1.11 +
    1.12  int
    1.13  main(int argc, char *argv[])
    1.14  {
    1.15 @@ -139,6 +144,9 @@
    1.16          case SDL_KEYUP:
    1.17              PrintKey(&event.key.keysym, 0);
    1.18              break;
    1.19 +        case SDL_TEXTINPUT:
    1.20 +            PrintText(event.text.text);
    1.21 +            break;
    1.22          case SDL_MOUSEBUTTONDOWN:
    1.23              /* Any button press quits the app... */
    1.24          case SDL_QUIT: