2
0
Эх сурвалжийг харах

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

Sam Lantinga 12 жил өмнө
parent
commit
7db31223e6

+ 1 - 1
src/video/x11/SDL_x11keyboard.c

@@ -271,7 +271,7 @@ X11_InitKeyboard(_THIS)
                 if (scancode == SDL_SCANCODE_UNKNOWN) {
                 if (scancode == SDL_SCANCODE_UNKNOWN) {
                     printf("scancode not found\n");
                     printf("scancode not found\n");
                 } else {
                 } else {
-                    printf("scancode = %d (%s)\n", j, SDL_GetScancodeName(j));
+                    printf("scancode = %d (%s)\n", scancode, SDL_GetScancodeName(scancode));
                 }
                 }
             }
             }
         }
         }