Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Show integer scancode, since that's how it's defined in the header.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 10, 2008
1 parent 7ab8cc4 commit 3344c64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/checkkeys.c
Expand Up @@ -57,13 +57,13 @@ PrintKey(SDL_keysym * sym, int pressed)
{
/* 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");
Expand Down

0 comments on commit 3344c64

Please sign in to comment.