From 799046fd9de389f15651d121d64f5be373e7dffe Mon Sep 17 00:00:00 2001 From: npspears <40127181+npspears@users.noreply.github.com> Date: Fri, 16 Sep 2022 12:37:39 -0500 Subject: Quark revision - rotary encoder and 7u support (#17664) by npspears --- keyboards/checkerboards/quark/quark.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'keyboards/checkerboards/quark/quark.c') diff --git a/keyboards/checkerboards/quark/quark.c b/keyboards/checkerboards/quark/quark.c index 02610c4203..736b955424 100644 --- a/keyboards/checkerboards/quark/quark.c +++ b/keyboards/checkerboards/quark/quark.c @@ -15,3 +15,15 @@ */ #include "quark.h" + +bool encoder_update_kb(uint8_t index, bool clockwise) { + if (!encoder_update_user(index, clockwise)) { return false; } + if (index == 0) { + if (clockwise) { + tap_code_delay(KC_VOLD, 10); + } else { + tap_code_delay(KC_VOLU, 10); + } + } + return true; +} -- cgit v1.2.3