mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +03:00
[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>
This commit is contained in:
@@ -10,6 +10,13 @@ FILE_LICENCE ( PUBLIC_DOMAIN );
|
||||
|
||||
#include <ipxe/keymap.h>
|
||||
|
||||
/** "us" keyboard mapping */
|
||||
struct key_mapping us_mapping[] __keymap = {
|
||||
/** "us" basic remapping */
|
||||
static struct keymap_key us_basic[] = {
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
/** "us" keyboard map */
|
||||
struct keymap us_keymap __keymap = {
|
||||
.name = "us",
|
||||
.basic = us_basic,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user