diff options
author | Drashna Jaelre <drashna@live.com> | 2021-05-21 23:17:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-21 23:17:32 -0700 |
commit | a0fed0ea176d1c986e40fc4981b900509c90d66e (patch) | |
tree | ee12f5943046015ea0dce8e2a30a68bc8eb99dbe /layouts/community/ortho_4x12/mindsound/keymap.c | |
parent | 76c23b15abc824f867b48d8d5100dced2417d336 (diff) | |
download | qmk_firmware-a0fed0ea176d1c986e40fc4981b900509c90d66e.tar.gz qmk_firmware-a0fed0ea176d1c986e40fc4981b900509c90d66e.zip |
Convert Encoder callbacks to be boolean functions (#12805)
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
Diffstat (limited to 'layouts/community/ortho_4x12/mindsound/keymap.c')
-rw-r--r-- | layouts/community/ortho_4x12/mindsound/keymap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/community/ortho_4x12/mindsound/keymap.c b/layouts/community/ortho_4x12/mindsound/keymap.c index 613f11d13..336545502 100644 --- a/layouts/community/ortho_4x12/mindsound/keymap.c +++ b/layouts/community/ortho_4x12/mindsound/keymap.c | |||
@@ -185,7 +185,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
185 | return true; | 185 | return true; |
186 | } | 186 | } |
187 | 187 | ||
188 | void encoder_update(bool clockwise) { | 188 | bool encoder_update_user(uint8_t index, bool clockwise) { |
189 | if (clockwise) { | 189 | if (clockwise) { |
190 | register_code(KC_VOLU); | 190 | register_code(KC_VOLU); |
191 | unregister_code(KC_VOLU); | 191 | unregister_code(KC_VOLU); |
@@ -193,6 +193,7 @@ void encoder_update(bool clockwise) { | |||
193 | register_code(KC_VOLD); | 193 | register_code(KC_VOLD); |
194 | unregister_code(KC_VOLD); | 194 | unregister_code(KC_VOLD); |
195 | } | 195 | } |
196 | return true; | ||
196 | } | 197 | } |
197 | 198 | ||
198 | // flicker implementation: | 199 | // flicker implementation: |