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 /users/kuchosauronad0/encoder.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 'users/kuchosauronad0/encoder.c')
| -rw-r--r-- | users/kuchosauronad0/encoder.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/users/kuchosauronad0/encoder.c b/users/kuchosauronad0/encoder.c index 06b7b5123..9284a041c 100644 --- a/users/kuchosauronad0/encoder.c +++ b/users/kuchosauronad0/encoder.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | #include "encoder.h" | 1 | #include "encoder.h" |
| 2 | void encoder_update_user(uint8_t index, bool clockwise) { | 2 | bool encoder_update_user(uint8_t index, bool clockwise) { |
| 3 | static uint16_t kc; | 3 | static uint16_t kc; |
| 4 | uint8_t temp_mod = get_mods(); | 4 | uint8_t temp_mod = get_mods(); |
| 5 | if (index == 0) { /* first encoder */ | 5 | if (index == 0) { /* first encoder */ |
| @@ -55,6 +55,7 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
| 55 | tap_code(KC_1); | 55 | tap_code(KC_1); |
| 56 | } | 56 | } |
| 57 | } | 57 | } |
| 58 | return true; | ||
| 58 | } | 59 | } |
| 59 | const uint16_t PROGMEM encoder_actions[][9] = { \ | 60 | const uint16_t PROGMEM encoder_actions[][9] = { \ |
| 60 | // None CTRL ALT SHIFT GUI CTRL+ALT CTRL+SHFT ALT+SHFT HYPER | 61 | // None CTRL ALT SHIFT GUI CTRL+ALT CTRL+SHFT ALT+SHFT HYPER |
