aboutsummaryrefslogtreecommitdiff
path: root/keyboards/yushakobo/quick7/keymaps/default/keymap.c
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2021-05-21 23:17:32 -0700
committerGitHub <noreply@github.com>2021-05-21 23:17:32 -0700
commita0fed0ea176d1c986e40fc4981b900509c90d66e (patch)
treeee12f5943046015ea0dce8e2a30a68bc8eb99dbe /keyboards/yushakobo/quick7/keymaps/default/keymap.c
parent76c23b15abc824f867b48d8d5100dced2417d336 (diff)
downloadqmk_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 'keyboards/yushakobo/quick7/keymaps/default/keymap.c')
-rw-r--r--keyboards/yushakobo/quick7/keymaps/default/keymap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/keyboards/yushakobo/quick7/keymaps/default/keymap.c b/keyboards/yushakobo/quick7/keymaps/default/keymap.c
index 3137f5853..385e89277 100644
--- a/keyboards/yushakobo/quick7/keymaps/default/keymap.c
+++ b/keyboards/yushakobo/quick7/keymaps/default/keymap.c
@@ -54,7 +54,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
54 return true; 54 return true;
55} 55}
56 56
57void encoder_update_user(uint8_t index, bool clockwise) { 57bool encoder_update_user(uint8_t index, bool clockwise) {
58 if (index == 0) { // Left encoder 58 if (index == 0) { // Left encoder
59 if (clockwise) { 59 if (clockwise) {
60 tap_code(KC_VOLU); 60 tap_code(KC_VOLU);
@@ -69,4 +69,5 @@ void encoder_update_user(uint8_t index, bool clockwise) {
69 rgblight_increase_hue_noeeprom(); 69 rgblight_increase_hue_noeeprom();
70 } 70 }
71 } 71 }
72 return true;
72} 73}