summaryrefslogtreecommitdiffstats
path: root/keyboards/checkerboards/quark/quark.c
diff options
context:
space:
mode:
authornpspears <40127181+npspears@users.noreply.github.com>2022-09-16 12:37:39 -0500
committerGitHub <noreply@github.com>2022-09-16 18:37:39 +0100
commit799046fd9de389f15651d121d64f5be373e7dffe (patch)
tree58253e46fe9ed9dcd5f6c81e5d5785a8525ccac0 /keyboards/checkerboards/quark/quark.c
parent1ec8ae8a49f02ae732cc5315d75bf2a6505fe00d (diff)
Quark revision - rotary encoder and 7u support (#17664)
by npspears
Diffstat (limited to 'keyboards/checkerboards/quark/quark.c')
-rw-r--r--keyboards/checkerboards/quark/quark.c12
1 files changed, 12 insertions, 0 deletions
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;
+}