diff --git a/src/video/x11/SDL_x11keyboard.c b/src/video/x11/SDL_x11keyboard.c index 5c5f5bcf1..6bc7ebbfa 100644 --- a/src/video/x11/SDL_x11keyboard.c +++ b/src/video/x11/SDL_x11keyboard.c @@ -271,7 +271,7 @@ X11_InitKeyboard(_THIS) if (scancode == SDL_SCANCODE_UNKNOWN) { printf("scancode not found\n"); } else { - printf("scancode = %d (%s)\n", j, SDL_GetScancodeName(j)); + printf("scancode = %d (%s)\n", scancode, SDL_GetScancodeName(scancode)); } } }