diff options
author | Michael Brown <mcb30@ipxe.org> | 2022-02-14 13:22:48 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2022-02-15 11:58:47 +0000 |
commit | 871dd236d4aff66e871c25addcf522fe75a4ccd7 (patch) | |
tree | 92972b82b4469c1802a7b335d439e04aa0f8e604 /src/hci/keymap/keymap_ua.c | |
parent | 1150321595c44acfac2b2c56590d4d7f1d2ad70c (diff) | |
download | ipxe-871dd236d4aff66e871c25addcf522fe75a4ccd7.zip ipxe-871dd236d4aff66e871c25addcf522fe75a4ccd7.tar.gz ipxe-871dd236d4aff66e871c25addcf522fe75a4ccd7.tar.bz2 |
[console] Allow for named keyboard mappings
Separate the concept of a keyboard mapping from a list of remapped
keys, to allow for the possibility of supporting multiple keyboard
mappings at runtime.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/hci/keymap/keymap_ua.c')
-rw-r--r-- | src/hci/keymap/keymap_ua.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/hci/keymap/keymap_ua.c b/src/hci/keymap/keymap_ua.c index 50f2e18..b4199cd 100644 --- a/src/hci/keymap/keymap_ua.c +++ b/src/hci/keymap/keymap_ua.c @@ -10,8 +10,15 @@ FILE_LICENCE ( PUBLIC_DOMAIN ); #include <ipxe/keymap.h> -/** "ua" keyboard mapping */ -struct key_mapping ua_mapping[] __keymap = { +/** "ua" basic remapping */ +static struct keymap_key ua_basic[] = { { 0xdc, 0x3c }, /* Pseudo-'\\' => '<' */ { 0xfc, 0x3e }, /* Pseudo-'|' => '>' */ + { 0, 0 } +}; + +/** "ua" keyboard map */ +struct keymap ua_keymap __keymap = { + .name = "ua", + .basic = ua_basic, }; |