- 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:
Jørgen P. Tjernø
2013-02-25 16:52:42 -08:00
parent 83e6f01e05
commit e2b192f98d
5 changed files with 186 additions and 283 deletions

View File

@@ -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