From 277d7b5c2c9d9cad0c6b39554f5b11745c28ff48 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 17 Oct 2013 17:37:23 -0700 Subject: [PATCH] Fixed using the wrong variable when reporting a missing SDL scancode mapping. --HG-- extra : rebase_source : addd6c5ccfe203f744ba50a120ebe5a1ca77476e --- src/video/x11/SDL_x11keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } } }