]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - keyboards/planck/keymaps/jetpacktuxedo/keymap.c
Keymap: add clicky support to jetpacktuxedo keymap (#3990)
[qmk_firmware.git] / keyboards / planck / keymaps / jetpacktuxedo / keymap.c
index 2994c0c077498e7686785ff7eddeb391a193ea6c..1324056862652225ea1b4a80bc1aaad71855296c 100644 (file)
@@ -189,6 +189,13 @@ uint8_t muse_offset = 70;
 uint16_t muse_tempo = 20;
 
 void encoder_update(bool clockwise) {
+  if (is_clicky_on()) {
+    if (clockwise) {
+      clicky_freq_up();
+    } else {
+      clicky_freq_down();
+    }
+  } else 
   if (muse_mode) {
     if (IS_LAYER_ON(_RAISE)) {
       if (clockwise) {
@@ -248,6 +255,12 @@ void dip_update(uint8_t index, bool active) {
           stop_all_notes();
         #endif
       }
+    case 2:
+      if (active) {
+        clicky_on();
+      } else {
+        clicky_off();
+      }
    }
 }