diff options
Diffstat (limited to 'keyboards/planck/keymaps/jetpacktuxedo/keymap.c')
| -rw-r--r-- | keyboards/planck/keymaps/jetpacktuxedo/keymap.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/keyboards/planck/keymaps/jetpacktuxedo/keymap.c b/keyboards/planck/keymaps/jetpacktuxedo/keymap.c index 2994c0c07..132405686 100644 --- a/keyboards/planck/keymaps/jetpacktuxedo/keymap.c +++ b/keyboards/planck/keymaps/jetpacktuxedo/keymap.c | |||
| @@ -189,6 +189,13 @@ uint8_t muse_offset = 70; | |||
| 189 | uint16_t muse_tempo = 20; | 189 | uint16_t muse_tempo = 20; |
| 190 | 190 | ||
| 191 | void encoder_update(bool clockwise) { | 191 | void encoder_update(bool clockwise) { |
| 192 | if (is_clicky_on()) { | ||
| 193 | if (clockwise) { | ||
| 194 | clicky_freq_up(); | ||
| 195 | } else { | ||
| 196 | clicky_freq_down(); | ||
| 197 | } | ||
| 198 | } else | ||
| 192 | if (muse_mode) { | 199 | if (muse_mode) { |
| 193 | if (IS_LAYER_ON(_RAISE)) { | 200 | if (IS_LAYER_ON(_RAISE)) { |
| 194 | if (clockwise) { | 201 | if (clockwise) { |
| @@ -248,6 +255,12 @@ void dip_update(uint8_t index, bool active) { | |||
| 248 | stop_all_notes(); | 255 | stop_all_notes(); |
| 249 | #endif | 256 | #endif |
| 250 | } | 257 | } |
| 258 | case 2: | ||
| 259 | if (active) { | ||
| 260 | clicky_on(); | ||
| 261 | } else { | ||
| 262 | clicky_off(); | ||
| 263 | } | ||
| 251 | } | 264 | } |
| 252 | } | 265 | } |
| 253 | 266 | ||
