aboutsummaryrefslogtreecommitdiff
path: root/keyboards/maxr1998/pulse4k/pulse4k.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/maxr1998/pulse4k/pulse4k.c')
-rw-r--r--keyboards/maxr1998/pulse4k/pulse4k.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/keyboards/maxr1998/pulse4k/pulse4k.c b/keyboards/maxr1998/pulse4k/pulse4k.c
index ee3d41ccd..2ec9dca73 100644
--- a/keyboards/maxr1998/pulse4k/pulse4k.c
+++ b/keyboards/maxr1998/pulse4k/pulse4k.c
@@ -59,3 +59,19 @@ void encoder_update_kb(uint8_t index, bool clockwise) {
59 } else encoder_two_update(clockwise); 59 } else encoder_two_update(clockwise);
60 } 60 }
61} 61}
62
63__attribute__((weak)) void encoder_one_update(bool clockwise) {
64 if (clockwise) {
65 tap_code(KC_PGDN);
66 } else {
67 tap_code(KC_PGUP);
68 }
69}
70
71__attribute__((weak)) void encoder_two_update(bool clockwise) {
72 if (clockwise) {
73 tap_code(KC_VOLU);
74 } else {
75 tap_code(KC_VOLD);
76 }
77}