summaryrefslogtreecommitdiff
path: root/keyboards/program_yoink/program_yoink.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/program_yoink/program_yoink.c')
-rw-r--r--keyboards/program_yoink/program_yoink.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/keyboards/program_yoink/program_yoink.c b/keyboards/program_yoink/program_yoink.c
index e549c98e93..a974d7f6fa 100644
--- a/keyboards/program_yoink/program_yoink.c
+++ b/keyboards/program_yoink/program_yoink.c
@@ -15,3 +15,14 @@
*/
#include "program_yoink.h"
+
+__attribute__ ((weak))
+void encoder_update_user(uint8_t index, bool clockwise) {
+ if (index == 0) {
+ if (clockwise) {
+ tap_code(KC_VOLU);
+ } else {
+ tap_code(KC_VOLD);
+ }
+ }
+}