iPXE
|
Keyboard mappings. More...
Go to the source code of this file.
Macros | |
#define | ASCII_MASK 0x7f |
ASCII character mask. More... | |
#define | CTRL_MASK 0x1f |
Control character mask. More... | |
#define | UPPER_MASK 0x5f |
Upper case character mask. More... | |
#define | CASE_TOGGLE ( ASCII_MASK & ~UPPER_MASK ) |
Case toggle bit. More... | |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
static | TABLE_START (keymap_start, KEYMAP) |
Default keyboard mapping. More... | |
unsigned int | key_remap (unsigned int character) |
Remap a key. More... | |
struct keymap * | keymap_find (const char *name) |
Find keyboard map by name. More... | |
void | keymap_set (struct keymap *keymap) |
Set keyboard map. More... | |
Variables | |
static struct keymap * | keymap_current = keymap_start |
Current keyboard mapping. More... | |
Keyboard mappings.
Definition in file keymap.c.
#define CASE_TOGGLE ( ASCII_MASK & ~UPPER_MASK ) |
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
Default keyboard mapping.
unsigned int key_remap | ( | unsigned int | character | ) |
Remap a key.
character | Character read from console |
mapped | Mapped character |
Definition at line 61 of file keymap.c.
References keymap::altgr, ASCII_MASK, keymap::basic, CASE_TOGGLE, CTRL_MASK, DBGC2, isalpha(), key, KEYMAP_ALTGR, KEYMAP_CAPSLOCK, KEYMAP_CAPSLOCK_UNDO, KEYMAP_CTRL, keymap_current, and KEYMAP_MASK.
Referenced by bios_getchar(), efi_getchar(), and usbkbd_map().
struct keymap* keymap_find | ( | const char * | name | ) |
Find keyboard map by name.
name | Keyboard map name |
keymap | Keyboard map, or NULL if not found |
Definition at line 104 of file keymap.c.
References for_each_table_entry, KEYMAP, keymap::name, name, NULL, and strcmp().
Referenced by keymap_apply().
void keymap_set | ( | struct keymap * | keymap | ) |
Set keyboard map.
keymap | Keyboard map, or NULL to use default |
Definition at line 121 of file keymap.c.
References DBGC, keymap_current, and keymap::name.
Referenced by keymap_apply().
|
static |
Current keyboard mapping.
Definition at line 53 of file keymap.c.
Referenced by key_remap(), and keymap_set().