summaryrefslogtreecommitdiff
path: root/keyboards/handwired/hnah108/keymaps/default
diff options
context:
space:
mode:
authorvuhopkep <boy9x0@gmail.com>2019-10-19 08:18:39 +0700
committerDrashna Jaelre <drashna@live.com>2019-10-18 18:18:39 -0700
commit9bfacc7c76237600ac0a05003fd87ae98e0b0221 (patch)
tree13a8c1b0cb935a5ec28c08ec853cecfc3908e162 /keyboards/handwired/hnah108/keymaps/default
parentc26faed2b60e59293f631e041619567f23a93406 (diff)
[Keyboard] update encoder function, info.json data (#7035)
* update encoder function, info.json data * Update rules.mk
Diffstat (limited to 'keyboards/handwired/hnah108/keymaps/default')
-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);
+ }
}
}
}