Fixed using the wrong variable when reporting a missing SDL scancode mapping.
diff --git a/src/video/x11/SDL_x11keyboard.c b/src/video/x11/SDL_x11keyboard.c
index 5c5f5bc..6bc7ebb 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));
}
}
}