diff options
Diffstat (limited to 'keyboards/bbrfkr/dynamis/dynamis.c')
-rw-r--r-- | keyboards/bbrfkr/dynamis/dynamis.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/keyboards/bbrfkr/dynamis/dynamis.c b/keyboards/bbrfkr/dynamis/dynamis.c index e7f780ef1a..8655cbc7bc 100644 --- a/keyboards/bbrfkr/dynamis/dynamis.c +++ b/keyboards/bbrfkr/dynamis/dynamis.c @@ -18,16 +18,12 @@ #ifdef ENCODER_ENABLE bool encoder_update_kb(uint8_t index, bool clockwise) { - if (!encoder_update_user(index, clockwise)) { - return false; + if (!encoder_update_user(index, clockwise)) { return false; } + if (clockwise) { + tap_code(layer_state == 0 ? KC_WH_D : KC_VOLD); + } else { + tap_code(layer_state == 0 ? KC_WH_U : KC_VOLU); } - if (index == 0) { /* First encoder */ - if (clockwise) { - tap_code(KC_WH_D); - } else { - tap_code(KC_WH_U); - } - } - return false; + return true; } #endif |