iPXE
|
Keyboard mappings. More...
Go to the source code of this file.
Data Structures | |
struct | keymap_key |
A remapped key. More... | |
struct | keymap |
A keyboard mapping. More... | |
Macros | |
#define | KEYMAP __table ( struct keymap, "keymap" ) |
Keyboard mapping table. More... | |
#define | __keymap_default __table_entry ( KEYMAP, 01 ) |
Define a default keyboard mapping. More... | |
#define | __keymap __table_entry ( KEYMAP, 02 ) |
Define a keyboard mapping. More... | |
#define | KEYMAP_MASK 0xff |
Mappable character mask. More... | |
#define | KEYMAP_PSEUDO 0x80 |
Pseudo key flag. More... | |
#define | KEYMAP_CTRL 0x01000000 |
Ctrl key flag. More... | |
#define | KEYMAP_CAPSLOCK 0x02000000 |
CapsLock key flag. More... | |
#define | KEYMAP_CAPSLOCK_UNDO 0x04000000 |
Undo CapsLock key flag. More... | |
#define | KEYMAP_CAPSLOCK_REDO ( KEYMAP_CAPSLOCK | KEYMAP_CAPSLOCK_UNDO ) |
Undo and redo CapsLock key flags. More... | |
#define | KEYMAP_ALTGR 0x08000000 |
AltGr key flag. More... | |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
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... | |
Keyboard mappings.
Definition in file keymap.h.
#define __keymap_default __table_entry ( KEYMAP, 01 ) |
#define __keymap __table_entry ( KEYMAP, 02 ) |
#define KEYMAP_CAPSLOCK_UNDO 0x04000000 |
#define KEYMAP_CAPSLOCK_REDO ( KEYMAP_CAPSLOCK | KEYMAP_CAPSLOCK_UNDO ) |
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
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().