summaryrefslogtreecommitdiff
path: root/keyboards/handwired/hnah108/keymaps
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/handwired/hnah108/keymaps')
-rw-r--r--keyboards/handwired/hnah108/keymaps/default/keymap.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/keyboards/handwired/hnah108/keymaps/default/keymap.c b/keyboards/handwired/hnah108/keymaps/default/keymap.c
index a0f06fe1fd..6d8fe072c1 100644
--- a/keyboards/handwired/hnah108/keymaps/default/keymap.c
+++ b/keyboards/handwired/hnah108/keymaps/default/keymap.c
@@ -44,17 +44,20 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
};
void encoder_update_user(uint8_t index, bool clockwise) {
- if (IS_LAYER_ON(_FN)) { /* First encoder */
+ if (index == 0) {
+ if (IS_LAYER_ON(_FN)) {
if (clockwise) {
- rgb_matrix_step();
+ tap_code(KC_BRIU);
} else {
- rgb_matrix_step_reverse();
+ tap_code(KC_BRID);
}
} else {
if (clockwise) {
- rgb_matrix_increase_speed();
+ tap_code(KC_VOLU);
+
} else {
- rgb_matrix_decrease_speed();
+ tap_code(KC_VOLD);
+ }
}
}
}