ソースを参照

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

Sam Lantinga 11 年 前
コミット
7db31223e6
1 ファイル変更1 行追加1 行削除
  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));
                 }
             }
         }