Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Show integer scancode, since that's how it's defined in the header.

  • Loading branch information
slouken committed Feb 10, 2008
1 parent 7ab8cc4 commit 3344c64dd9ac06fe83c9c91ef11a951f10484e96
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/checkkeys.c
@@ -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");

0 comments on commit 3344c64

Please sign in to comment.