changeset 3956:3868bebb9f5b SDL-1.2

Print keysym with key events.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 13 Jun 2007 04:13:21 +0000
parents 40b6b5744e05
children b1d5b56aa549
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:52:05 2007 +0000
+++ b/test/threadwin.c	Wed Jun 13 04:13:21 2007 +0000
@@ -179,8 +179,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");