Browse Source

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

Sam Lantinga 12 years ago
parent
commit
7db31223e6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/video/x11/SDL_x11keyboard.c

+ 1 - 1
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));
                 }
             }
         }