summaryrefslogtreecommitdiffstats
path: root/keyboards/planck/keymaps/jetpacktuxedo/keymap.c
diff options
context:
space:
mode:
authorEthan Madden <crazeh.monkeh@gmail.com>2018-09-27 18:09:23 -0700
committerDrashna Jaelre <drashna@live.com>2018-09-27 18:09:23 -0700
commit246d539f295c70846aa4ecaf9cfbe79b959bf3c7 (patch)
treecfa6a71fc382005225437db93406f9b31b3b6845 /keyboards/planck/keymaps/jetpacktuxedo/keymap.c
parenta65085a89354e89ddd3517aa63c74ef6dd32ca8b (diff)
Keymap: add clicky support to jetpacktuxedo keymap (#3990)
controlled by dip 3 with pitch modulated by the knob
Diffstat (limited to 'keyboards/planck/keymaps/jetpacktuxedo/keymap.c')
-rw-r--r--keyboards/planck/keymaps/jetpacktuxedo/keymap.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/keyboards/planck/keymaps/jetpacktuxedo/keymap.c b/keyboards/planck/keymaps/jetpacktuxedo/keymap.c
index 2994c0c077..1324056862 100644
--- a/keyboards/planck/keymaps/jetpacktuxedo/keymap.c
+++ b/keyboards/planck/keymaps/jetpacktuxedo/keymap.c
@@ -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();
+ }
}
}