forked from mirrors/qmk_userspace
Fix to bootmagic key configurable
This commit is contained in:
parent
58ca7b904b
commit
b2c7529ec9
3 changed files with 44 additions and 3 deletions
|
@ -18,8 +18,10 @@ void bootmagic(void)
|
|||
}
|
||||
|
||||
/* do scans in case of bounce */
|
||||
print("boogmagic scan: ... ");
|
||||
uint8_t scan = 100;
|
||||
while (scan--) { matrix_scan(); _delay_ms(10); }
|
||||
print("done.\n");
|
||||
|
||||
/* bootmagic skip */
|
||||
if (bootmagic_scan_keycode(BOOTMAGIC_KEY_SKIP)) {
|
||||
|
@ -53,7 +55,7 @@ void bootmagic(void)
|
|||
|
||||
/* keymap config */
|
||||
keymap_config.raw = eeconfig_read_keymap();
|
||||
if (bootmagic_scan_keycode(BOOTMAGIC_KEY_SWAP_CONTROL_CPASLOCK)) {
|
||||
if (bootmagic_scan_keycode(BOOTMAGIC_KEY_SWAP_CONTROL_CAPSLOCK)) {
|
||||
keymap_config.swap_control_capslock = !keymap_config.swap_control_capslock;
|
||||
}
|
||||
if (bootmagic_scan_keycode(BOOTMAGIC_KEY_CAPSLOCK_TO_CONTROL)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue