]> git.donarmstrong.com Git - qmk_firmware.git/blob - quantum/keycode_config.h
Merge remote-tracking branch 'upstream/master'
[qmk_firmware.git] / quantum / keycode_config.h
1 #include "eeconfig.h"
2 #include "keycode.h"
3
4 #ifndef KEYCODE_CONFIG_H
5 #define KEYCODE_CONFIG_H
6
7 uint16_t keycode_config(uint16_t keycode);
8
9 /* NOTE: Not portable. Bit field order depends on implementation */
10 typedef 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
24 extern keymap_config_t keymap_config;
25
26 #endif /* KEYCODE_CONFIG_H */