Fixed using the wrong variable when reporting a missing SDL scancode mapping.

This commit is contained in:
Sam Lantinga 2013-10-17 17:37:23 -07:00
parent 2e6b4b960d
commit 7db31223e6
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ X11_InitKeyboard(_THIS)
if (scancode == SDL_SCANCODE_UNKNOWN) { if (scancode == SDL_SCANCODE_UNKNOWN) {
printf("scancode not found\n"); printf("scancode not found\n");
} else { } else {
printf("scancode = %d (%s)\n", j, SDL_GetScancodeName(j)); printf("scancode = %d (%s)\n", scancode, SDL_GetScancodeName(scancode));
} }
} }
} }