Uses SDL_Keycode
to implement basic keyboard layout support, specifically for text fields.
Console variables:
kb_ignorelayout
(default Off
), CV_SAVE
: Turn on to disable keyboard layout support.C:
event_t
has one new field:
INT32
realkey
(after key
): The key, generated from SDL_Keycode
instead of SDL_Scancode
-- what key
uses.event_t
is not generated from a SDL_KeyboardEvent
, equals key
.Lua:
keyevent_t
userdata sent by the KeyDown
and KeyUp
hooks has 2 new fields.name
and num
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.