From 9bfacc7c76237600ac0a05003fd87ae98e0b0221 Mon Sep 17 00:00:00 2001 From: vuhopkep Date: Sat, 19 Oct 2019 08:18:39 +0700 Subject: [Keyboard] update encoder function, info.json data (#7035) * update encoder function, info.json data * Update rules.mk --- keyboards/handwired/hnah108/keymaps/default/keymap.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'keyboards/handwired/hnah108/keymaps/default/keymap.c') 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); + } } } } -- cgit v1.2.3