diff options
author | Croktopus <39040552+Croktopus@users.noreply.github.com> | 2020-09-21 22:54:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-21 22:54:55 -0700 |
commit | e4a4ed3b0c053ebed902a28b2a8f68cdf78597f5 (patch) | |
tree | d014853c1f97afbf5856a8af66a5e2cc22d34a18 /keyboards/metamechs/timberwolf/timberwolf.c | |
parent | 7ddae97c89905f8826c2efe0331d681d6a75876a (diff) | |
download | qmk_firmware-e4a4ed3b0c053ebed902a28b2a8f68cdf78597f5.tar.gz |
moved encoder code to timberwolf.c (#10317)
* moved encoder code to timberwolf.c
* Update keyboards/metamechs/timberwolf/timberwolf.c
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'keyboards/metamechs/timberwolf/timberwolf.c')
-rw-r--r-- | keyboards/metamechs/timberwolf/timberwolf.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/keyboards/metamechs/timberwolf/timberwolf.c b/keyboards/metamechs/timberwolf/timberwolf.c index c9a750f45..af6d42a54 100644 --- a/keyboards/metamechs/timberwolf/timberwolf.c +++ b/keyboards/metamechs/timberwolf/timberwolf.c @@ -27,3 +27,12 @@ bool led_update_kb(led_t led_state) { } return runDefault; } + +__attribute__((weak)) +void encoder_update_user(uint8_t index, bool clockwise) { + if (clockwise) { + tap_code(KC_VOLU); + } else { + tap_code(KC_VOLD); + } +} |