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_t
has one new field:-
INT32
realkey
(afterkey
): The key, generated fromSDL_Keycode
instead ofSDL_Scancode
-- whatkey
uses.
When theevent_t
is not generated from aSDL_KeyboardEvent
, equalskey
.
-
Lua:
-
keyevent_t
userdata sent by theKeyDown
andKeyUp
hooks has 2 new fields.
The original fieldsname
andnum
remain, and retain their behavior of assuming you're using the QWERTY layout.-
string
realname
: The name of the key according to the current keyboard layout. -
int
realnum
: The numeric code of the key according to the current keyboard layout.
-