keyboard: Only send SDL_KEYMAPCHANGED when the keymap actually changes

This commit is contained in:
Cameron Gutman
2022-07-31 15:34:03 -05:00
committed by Sam Lantinga
parent a10c57dfe4
commit 8b438f7b51
12 changed files with 33 additions and 28 deletions

View File

@@ -36,7 +36,7 @@ void Android_InitKeyboard(void)
/* Add default scancode to key mapping */
SDL_GetDefaultKeymap(keymap);
SDL_SetKeymap(0, keymap, SDL_NUM_SCANCODES);
SDL_SetKeymap(0, keymap, SDL_NUM_SCANCODES, SDL_FALSE);
}
static SDL_Scancode Android_Keycodes[] = {