Add a new SDL_KEYMAPCHANGED SDL event to abstract notification of keyboard layout or input language changes.

This commit is contained in:
Sam Lantinga
2015-10-27 11:17:32 -07:00
parent f8824cb99b
commit 2b0140a91f
6 changed files with 19 additions and 3 deletions

View File

@@ -94,6 +94,9 @@ typedef enum
SDL_KEYUP, /**< Key released */
SDL_TEXTEDITING, /**< Keyboard text editing (composition) */
SDL_TEXTINPUT, /**< Keyboard text input */
SDL_KEYMAPCHANGED, /**< Keymap changed due to a system event such as an
input language or keyboard layout change.
*/
/* Mouse events */
SDL_MOUSEMOTION = 0x400, /**< Mouse moved */