1 #ifndef __KEYMAPPER_H__
2 #define __KEYMAPPER_H__
6 #endif /* __cplusplus */
8 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
19 struct symbol symbols
[];
22 #define BEGIN_KEYMAP(title, size) \
23 struct keymap title = { \
33 #define MAP(scan, ks1, ks2) \
34 {scan, {KBD_##ks1, KBD_##ks2}, {KBD_##ks1, KBD_##ks2}},
36 #define EXT_MAP(scan, ks1, ks2, ks3, ks4) \
37 {scan, {KBD_##ks1, KBD_##ks2}, {KBD_##ks3, KBD_##ks4}},
41 #endif /* __cplusplus */
43 #endif /* __KEYMAPPER_H__ */