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 /keyboards/rotr | |
| 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 'keyboards/rotr')
| -rw-r--r-- | keyboards/rotr/rotr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/keyboards/rotr/rotr.c b/keyboards/rotr/rotr.c index 2097bd9c1..b7c551075 100644 --- a/keyboards/rotr/rotr.c +++ b/keyboards/rotr/rotr.c | |||
| @@ -1,9 +1,11 @@ | |||
| 1 | #include "rotr.h" | 1 | #include "rotr.h" |
| 2 | 2 | ||
| 3 | void encoder_update_kb(uint8_t index, bool clockwise) { | 3 | bool encoder_update_kb(uint8_t index, bool clockwise) { |
| 4 | if (!encoder_update_user(index, clockwise)) return false; | ||
| 4 | if (clockwise) { | 5 | if (clockwise) { |
| 5 | tap_code(KC_VOLU); | 6 | tap_code(KC_VOLU); |
| 6 | } else { | 7 | } else { |
| 7 | tap_code(KC_VOLD); | 8 | tap_code(KC_VOLD); |
| 8 | } | 9 | } |
| 10 | return true; | ||
| 9 | } | 11 | } |
