|
ginnOS
The reference: libc, the libraries and the kernel
|
the list of built-in keyboard layouts, and the active one. More...
Macros | |
| #define | LAYOUT_COUNT (sizeof(layouts) / sizeof(layouts[0])) |
Typedefs | |
| typedef const keyboard_layout_t *(*) | layout_fn_t(void) |
Functions | |
| const keyboard_layout_t * | keyboard_get_layout (void) |
| get the active keyboard layout. | |
| const keyboard_layout_t * | keyboard_layout_at (uint32_t index) |
| a built-in layout by its index (layouts.c has the list). | |
| uint32_t | keyboard_layout_index (void) |
| the index of the active layout. | |
| bool | keyboard_set_layout (uint32_t index) |
| make a built-in layout the active one. | |
the list of built-in keyboard layouts, and the active one.
the keyboard interrupt reads the active index on every key press; a switch writes it once, so no lock is needed.
| #define LAYOUT_COUNT (sizeof(layouts) / sizeof(layouts[0])) |
| typedef const keyboard_layout_t *(*) layout_fn_t(void) |
| const keyboard_layout_t * keyboard_get_layout | ( | void | ) |
get the active keyboard layout.
| const keyboard_layout_t * keyboard_layout_at | ( | uint32_t | index | ) |
a built-in layout by its index (layouts.c has the list).
| uint32_t keyboard_layout_index | ( | void | ) |
the index of the active layout.