mirror of
https://github.com/yawut/SDL.git
synced 2026-09-06 16:16:21 -05:00
sdl2
- change the windows scancode logic to use the scan code value in lparam rather than VK's to get a stable scancode value across different KB layouts
This commit is contained in:
@@ -105,7 +105,7 @@ PrintKey(SDL_Keysym * sym, SDL_bool pressed, SDL_bool repeat)
|
||||
"Unknown Key (scancode %d = %s) %s ",
|
||||
sym->scancode,
|
||||
SDL_GetScancodeName(sym->scancode),
|
||||
pressed ? "pressed" : "released");
|
||||
pressed ? "pressed " : "released");
|
||||
}
|
||||
|
||||
/* Print the translated character, if one exists */
|
||||
@@ -129,13 +129,13 @@ PrintKey(SDL_Keysym * sym, SDL_bool pressed, SDL_bool repeat)
|
||||
if (repeat) {
|
||||
print_string(&spot, &left, " (repeat)");
|
||||
}
|
||||
SDL_Log("%s", message);
|
||||
SDL_Log("%s\n", message);
|
||||
}
|
||||
|
||||
static void
|
||||
PrintText(char *text)
|
||||
{
|
||||
SDL_Log("Text: %s", text);
|
||||
SDL_Log("Text: %s\n", text);
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user