summaryrefslogtreecommitdiffstats
path: root/keyboards/z12/z12.c
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2021-10-16 02:02:07 +0000
committerQMK Bot <hello@qmk.fm>2021-10-16 02:02:07 +0000
commita1191495132e924cad12533f11c19ba4b8288b0d (patch)
tree8b7fe8472fbc0d7229883a93ef91b26129ddc60b /keyboards/z12/z12.c
parent36fc46ead7e9c3231b1223eb7945152aab705993 (diff)
parent40badc4413d97226398302fb7a84c83c5c4f03a8 (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/z12/z12.c')
-rw-r--r--keyboards/z12/z12.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/keyboards/z12/z12.c b/keyboards/z12/z12.c
index 99fe62ab93..2af8836cab 100644
--- a/keyboards/z12/z12.c
+++ b/keyboards/z12/z12.c
@@ -18,22 +18,6 @@
#ifdef ENCODER_ENABLE
bool encoder_update_kb(uint8_t index, bool clockwise) {
- if (!encoder_update_user(index, clockwise)) { return false; }
- if (index == 0) { // LEFT
- // Scroll
- if (clockwise) {
- tap_code_delay(KC_PGDN, 10);
- } else {
- tap_code_delay(KC_PGUP, 10);
- }
- } else { // RIGHT
- // Volume control.
- if (clockwise) {
- tap_code_delay(KC_VOLU, 10);
- } else {
- tap_code_delay(KC_VOLD, 10);
- }
- }
- return false;
+ return encoder_update_user(index, clockwise);
}
#endif