Fixed using the wrong variable when reporting a missing SDL scancode mapping.
authorSam Lantinga <slouken@libsdl.org>
Thu, 17 Oct 2013 17:37:23 -0700
changeset 7824 286ab38ef766
parent 7823 4ab3a5ee041d
child 7825 10be1bae0f7a
Fixed using the wrong variable when reporting a missing SDL scancode mapping.
src/video/x11/SDL_x11keyboard.c
--- a/src/video/x11/SDL_x11keyboard.c	Thu Oct 17 11:56:33 2013 -0700
+++ b/src/video/x11/SDL_x11keyboard.c	Thu Oct 17 17:37:23 2013 -0700
@@ -271,7 +271,7 @@
                 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));
                 }
             }
         }