diff options
author | dakkar <dakkar@thenautilus.net> | 2019-02-15 15:13:07 +0000 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2019-02-15 15:13:07 +0000 |
commit | 332b5ceec3963a5ecbf123865698d824d1eedc43 (patch) | |
tree | c9bc6b31291079e1654ee78d70c9b4f4d9552317 /combos.h | |
parent | start of the "color picker" toy (diff) | |
download | keyboardio-model01-332b5ceec3963a5ecbf123865698d824d1eedc43.tar.gz keyboardio-model01-332b5ceec3963a5ecbf123865698d824d1eedc43.tar.bz2 keyboardio-model01-332b5ceec3963a5ecbf123865698d824d1eedc43.zip |
probably simpler: use LEDMode
Diffstat (limited to 'combos.h')
-rw-r--r-- | combos.h | 17 |
1 files changed, 2 insertions, 15 deletions
@@ -3,31 +3,18 @@ #include "kaleidoscope/plugin/MagicCombo.h" #include "kaleidoscope/plugin/USB-Quirks.h" -#include "color-picker.h" enum { // Toggle between Boot (6-key rollover; for BIOSes and early boot) and NKRO // mode. - COMBO_TOGGLE_NKRO_MODE, - COMBO_TOGGLE_COLOR_PICKER + COMBO_TOGGLE_NKRO_MODE }; static void toggleKeyboardProtocol(uint8_t combo_index) { USBQuirks.toggleKeyboardProtocol(); } -static void toggleColorPicker(uint8_t combo_index) { - theColorPicker.toggle(); -} - -USE_MAGIC_COMBOS( - { - .action = toggleKeyboardProtocol, +USE_MAGIC_COMBOS({.action = toggleKeyboardProtocol, // Left Fn + Esc + Shift .keys = { R3C6, R2C6, R3C7 } - }, - { - .action = toggleColorPicker, - // Left Fn + Right Fn - .keys = { R3C6, R3C9 } }); |