diff options
Diffstat (limited to 'keyboards/clueboard/2x1800/2019/2019.c')
-rw-r--r-- | keyboards/clueboard/2x1800/2019/2019.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/keyboards/clueboard/2x1800/2019/2019.c b/keyboards/clueboard/2x1800/2019/2019.c index 29f7a4901..40032cd66 100644 --- a/keyboards/clueboard/2x1800/2019/2019.c +++ b/keyboards/clueboard/2x1800/2019/2019.c | |||
@@ -144,13 +144,11 @@ bool led_update_kb(led_t led_state) { | |||
144 | return res; | 144 | return res; |
145 | } | 145 | } |
146 | 146 | ||
147 | __attribute__ ((weak)) | 147 | __attribute__((weak)) bool encoder_update_keymap(uint8_t index, bool clockwise) { return true; } |
148 | bool encoder_update_keymap(int8_t index, bool clockwise) { | 148 | __attribute__((weak)) bool encoder_update_user(uint8_t index, bool clockwise) { return encoder_update_keymap(index, clockwise); } |
149 | return false; | ||
150 | } | ||
151 | 149 | ||
152 | void encoder_update_kb(int8_t index, bool clockwise) { | 150 | bool encoder_update_kb(uint8_t index, bool clockwise) { |
153 | if (!encoder_update_keymap(index, clockwise)) { | 151 | if (!encoder_update_user(index, clockwise)) { |
154 | // Encoder 1, outside left | 152 | // Encoder 1, outside left |
155 | if (index == 0 && clockwise) { | 153 | if (index == 0 && clockwise) { |
156 | tap_code(KC_MS_U); // turned right | 154 | tap_code(KC_MS_U); // turned right |
@@ -179,4 +177,5 @@ void encoder_update_kb(int8_t index, bool clockwise) { | |||
179 | tap_code(KC_MS_L); // turned left | 177 | tap_code(KC_MS_L); // turned left |
180 | } | 178 | } |
181 | } | 179 | } |
180 | return true; | ||
182 | } | 181 | } |