diff test/checkkeys.c @ 2300:c97ad1abe05b

Minimal implementation of textinput events for x11. It only works for latin-1.
author Bob Pendleton <bob@pendleton.com>
date Tue, 15 Jan 2008 22:37:17 +0000
parents dbc6d1893869
children d87417504c75
line wrap: on
line diff
--- a/test/checkkeys.c	Sat Jan 12 18:07:06 2008 +0000
+++ b/test/checkkeys.c	Tue Jan 15 22:37:17 2008 +0000
@@ -89,6 +89,11 @@
     printf("\n");
 }
 
+static void
+PrintText(char *text)
+{
+}
+
 int
 main(int argc, char *argv[])
 {
@@ -139,6 +144,9 @@
         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: