test/checkkeys.c
changeset 2295 dbc6d1893869
parent 1895 c121d94672cb
child 2300 c97ad1abe05b
--- a/test/checkkeys.c	Thu Jan 03 06:07:30 2008 +0000
+++ b/test/checkkeys.c	Tue Jan 08 00:10:46 2008 +0000
@@ -57,11 +57,15 @@
 {
     /* Print the keycode, name and state */
     if (sym->sym) {
-        printf("Key %s:  %d-%s ", pressed ? "pressed" : "released",
-               sym->sym, SDL_GetKeyName(sym->sym));
+        printf("Key %s:  physical 0x%08X = %s, layout 0x%08X = %s ",
+               pressed ? "pressed " : "released",
+               sym->sym,
+               SDL_GetKeyName(sym->sym),
+               SDL_GetLayoutKey(sym->sym),
+               SDL_GetKeyName(SDL_GetLayoutKey(sym->sym)));
     } else {
-        printf("Unknown Key (scancode = %d) %s ", sym->scancode,
-               pressed ? "pressed" : "released");
+        printf("Unknown Key (scancode = 0x%08X) %s ",
+               sym->scancode, pressed ? "pressed" : "released");
     }
 
     /* Print the translated character, if one exists */