diff options
Diffstat (limited to 'keyboards/z12/z12.c')
-rw-r--r-- | keyboards/z12/z12.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/keyboards/z12/z12.c b/keyboards/z12/z12.c index 99fe62ab9..2af8836ca 100644 --- a/keyboards/z12/z12.c +++ b/keyboards/z12/z12.c | |||
@@ -18,22 +18,6 @@ | |||
18 | 18 | ||
19 | #ifdef ENCODER_ENABLE | 19 | #ifdef ENCODER_ENABLE |
20 | bool encoder_update_kb(uint8_t index, bool clockwise) { | 20 | bool encoder_update_kb(uint8_t index, bool clockwise) { |
21 | if (!encoder_update_user(index, clockwise)) { return false; } | 21 | return encoder_update_user(index, clockwise); |
22 | if (index == 0) { // LEFT | ||
23 | // Scroll | ||
24 | if (clockwise) { | ||
25 | tap_code_delay(KC_PGDN, 10); | ||
26 | } else { | ||
27 | tap_code_delay(KC_PGUP, 10); | ||
28 | } | ||
29 | } else { // RIGHT | ||
30 | // Volume control. | ||
31 | if (clockwise) { | ||
32 | tap_code_delay(KC_VOLU, 10); | ||
33 | } else { | ||
34 | tap_code_delay(KC_VOLD, 10); | ||
35 | } | ||
36 | } | ||
37 | return false; | ||
38 | } | 22 | } |
39 | #endif | 23 | #endif |