Mercurial > sdl-ios-xcode
changeset 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 | 33052794de27 |
children | 5e1f06dc5136 |
files | test/checkkeys.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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");