diff options
| author | tmk <nobody@nowhere> | 2013-03-10 19:22:54 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2013-03-10 19:22:54 +0900 |
| commit | de8ef18a534163b40e307418b3af603142d5d6b0 (patch) | |
| tree | 9f35a4795b40dc6328b9d9385b81460ba47143cb /common/bootmagic.c | |
| parent | 51050875b7f1dd5216ba46298f95cf3030a36211 (diff) | |
| download | qmk_firmware-de8ef18a534163b40e307418b3af603142d5d6b0.tar.gz qmk_firmware-de8ef18a534163b40e307418b3af603142d5d6b0.zip | |
Add KEYCONF to eeconfig.c
Diffstat (limited to 'common/bootmagic.c')
| -rw-r--r-- | common/bootmagic.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/common/bootmagic.c b/common/bootmagic.c index 31b8ae5e6..46fbc180a 100644 --- a/common/bootmagic.c +++ b/common/bootmagic.c | |||
| @@ -27,6 +27,28 @@ void bootmagic(void) | |||
| 27 | if (bootmagic_scan_keycode(BOOTMAGIC_EEPROM_CLEAR_KEY)) { | 27 | if (bootmagic_scan_keycode(BOOTMAGIC_EEPROM_CLEAR_KEY)) { |
| 28 | eeconfig_init(); | 28 | eeconfig_init(); |
| 29 | } | 29 | } |
| 30 | |||
| 31 | if (bootmagic_scan_keycode(BOOTMAGIC_SWAP_CONTROL_CPASLOCK)) { | ||
| 32 | eeconfig_write_keyconf(eeconfig_read_keyconf() ^ EECONFIG_KEYCONF_SWAP_CONTROL_CAPSLOCK); | ||
| 33 | } | ||
| 34 | if (bootmagic_scan_keycode(BOOTMAGIC_CAPSLOCK_TO_CONTROL)) { | ||
| 35 | eeconfig_write_keyconf(eeconfig_read_keyconf() ^ EECONFIG_KEYCONF_CAPSLOCK_TO_CONTROL); | ||
| 36 | } | ||
| 37 | if (bootmagic_scan_keycode(BOOTMAGIC_SWAP_LALT_LGUI)) { | ||
| 38 | eeconfig_write_keyconf(eeconfig_read_keyconf() ^ EECONFIG_KEYCONF_SWAP_LALT_LGUI); | ||
| 39 | } | ||
| 40 | if (bootmagic_scan_keycode(BOOTMAGIC_SWAP_RALT_RGUI)) { | ||
| 41 | eeconfig_write_keyconf(eeconfig_read_keyconf() ^ EECONFIG_KEYCONF_SWAP_RALT_RGUI); | ||
| 42 | } | ||
| 43 | if (bootmagic_scan_keycode(BOOTMAGIC_NO_GUI)) { | ||
| 44 | eeconfig_write_keyconf(eeconfig_read_keyconf() ^ EECONFIG_KEYCONF_NO_GUI); | ||
| 45 | } | ||
| 46 | if (bootmagic_scan_keycode(BOOTMAGIC_SWAP_GRAVE_ESC)) { | ||
| 47 | eeconfig_write_keyconf(eeconfig_read_keyconf() ^ EECONFIG_KEYCONF_SWAP_GRAVE_ESC); | ||
| 48 | } | ||
| 49 | if (bootmagic_scan_keycode(BOOTMAGIC_SWAP_BACKSLASH_BACKSPACE)) { | ||
| 50 | eeconfig_write_keyconf(eeconfig_read_keyconf() ^ EECONFIG_KEYCONF_SWAP_BACKSLASH_BACKSPACE); | ||
| 51 | } | ||
| 30 | } | 52 | } |
| 31 | 53 | ||
| 32 | bool bootmagic_scan_keycode(uint8_t keycode) | 54 | bool bootmagic_scan_keycode(uint8_t keycode) |
