38 #define ASCII_MASK 0x7f 41 #define CTRL_MASK 0x1f 44 #define UPPER_MASK 0x5f 47 #define CASE_TOGGLE ( ASCII_MASK & ~UPPER_MASK ) 74 for ( ;
key->from ;
key++ ) {
75 if ( mapped ==
key->from ) {
#define KEYMAP
Keyboard mapping table.
#define KEYMAP_CAPSLOCK
CapsLock key flag.
struct keymap_key * basic
Basic remapping table (zero-terminated)
#define KEYMAP_MASK
Mappable character mask.
static struct keymap * keymap_current
Current keyboard mapping.
#define KEYMAP_CTRL
Ctrl key flag.
static int isalpha(int character)
Check if character is alphabetic.
struct keymap_key * altgr
AltGr remapping table (zero-terminated)
#define CASE_TOGGLE
Case toggle bit.
#define KEYMAP_ALTGR
AltGr key flag.
#define CTRL_MASK
Control character mask.
unsigned int key_remap(unsigned int character)
Remap a key.
#define for_each_table_entry(pointer, table)
Iterate through all entries within a linker table.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
void keymap_set(struct keymap *keymap)
Set keyboard map.
int strcmp(const char *first, const char *second)
Compare strings.
#define ASCII_MASK
ASCII character mask.
struct keymap * keymap_find(const char *name)
Find keyboard map by name.
static TABLE_START(keymap_start, KEYMAP)
Default keyboard mapping.
#define KEYMAP_CAPSLOCK_UNDO
Undo CapsLock key flag.
#define NULL
NULL pointer (VOID *)