changeset 2117:40888832d785

Merged r3059:3060 from branches/SDL-1.2: output key event's keysym.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 13 Jun 2007 06:05:39 +0000
parents b42abf0a50bc
children 238db749017a
files test/threadwin.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/threadwin.c	Sat Jun 09 19:58:41 2007 +0000
+++ b/test/threadwin.c	Wed Jun 13 06:05:39 2007 +0000
@@ -184,8 +184,9 @@
                 /* We want to toggle visibility on buttonpress */
             case SDL_KEYDOWN:
             case SDL_KEYUP:
-                printf("Key '%c' has been %s\n",
+                printf("Key '%c' (keysym==%d) has been %s\n",
                        events[i].key.keysym.unicode,
+                       (int) events[i].key.keysym.sym,
                        (events[i].key.state == SDL_PRESSED) ?
                        "pressed" : "released");