aboutsummaryrefslogtreecommitdiff
path: root/quantum/keycode_config.h
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/keycode_config.h')
-rw-r--r--quantum/keycode_config.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/quantum/keycode_config.h b/quantum/keycode_config.h
new file mode 100644
index 000000000..c15b0d32f
--- /dev/null
+++ b/quantum/keycode_config.h
@@ -0,0 +1,26 @@
1#include "eeconfig.h"
2#include "keycode.h"
3
4#ifndef KEYCODE_CONFIG_H
5#define KEYCODE_CONFIG_H
6
7uint16_t keycode_config(uint16_t keycode);
8
9/* NOTE: Not portable. Bit field order depends on implementation */
10typedef union {
11 uint16_t raw;
12 struct {
13 bool swap_control_capslock:1;
14 bool capslock_to_control:1;
15 bool swap_lalt_lgui:1;
16 bool swap_ralt_rgui:1;
17 bool no_gui:1;
18 bool swap_grave_esc:1;
19 bool swap_backslash_backspace:1;
20 bool nkro:1;
21 };
22} keymap_config_t;
23
24extern keymap_config_t keymap_config;
25
26#endif /* KEYCODE_CONFIG_H */