Mercurial > sdl-ios-xcode
diff test/checkkeys.c @ 2315:95586dfe1992
Show integer scancode, since that's how it's defined in the header.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 10 Feb 2008 17:29:23 +0000 |
parents | 47f8a579cd9b |
children | 95352c671a6e |
line wrap: on
line diff
--- a/test/checkkeys.c Sun Feb 10 16:21:05 2008 +0000 +++ b/test/checkkeys.c Sun Feb 10 17:29:23 2008 +0000 @@ -57,13 +57,13 @@ { /* Print the keycode, name and state */ if (sym->sym) { - printf("Key %s: scancode 0x%04X = %s, keycode 0x%08X = %s ", + printf("Key %s: scancode %d = %s, keycode 0x%08X = %s ", pressed ? "pressed " : "released", sym->scancode, SDL_GetScancodeName(sym->scancode), sym->sym, SDL_GetKeyName(sym->sym)); } else { - printf("Unknown Key (scancode = 0x%04X = %s) %s ", + printf("Unknown Key (scancode %d = %s) %s ", sym->scancode, SDL_GetScancodeName(sym->scancode), pressed ? "pressed" : "released");