Keyboard layout support.
Uses SDL_Keycode to implement basic keyboard layout support, specifically for text fields.
Console variables:
-
kb_ignorelayout(defaultOff),CV_SAVE: Turn on to disable keyboard layout support.
C:
-
event_thas one new field:-
INT32realkey(afterkey): The key, generated fromSDL_Keycodeinstead ofSDL_Scancode-- whatkeyuses.
When theevent_tis not generated from aSDL_KeyboardEvent, equalskey.
-
Lua:
-
keyevent_tuserdata sent by theKeyDownandKeyUphooks has 2 new fields.
The original fieldsnameandnumremain, and retain their behavior of assuming you're using the QWERTY layout.-
stringrealname: The name of the key according to the current keyboard layout. -
intrealnum: The numeric code of the key according to the current keyboard layout.
-