WIP refacto keyboard.c

This commit is contained in:
Stacy Harper
2021-08-26 09:16:47 +02:00
committed by John Sullivan
parent ff92a92086
commit e73316bd7c
5 changed files with 41 additions and 37 deletions

View File

@ -13,6 +13,11 @@
fprintf(stderr, __VA_ARGS__); \
exit(1)
#ifndef KEYMAP
#error "make sure to define KEYMAP"
#endif
#include KEYMAP
void
kbd_switch_layout(struct kbd *kb, struct layout *l) {
kb->prevlayout = kb->layout;