summaryrefslogtreecommitdiff
path: root/keyboards/z12/z12.c
diff options
context:
space:
mode:
authorSergi Meseguer <zigotica@gmail.com>2021-10-16 04:02:04 +0200
committerGitHub <noreply@github.com>2021-10-15 19:02:04 -0700
commit40badc4413d97226398302fb7a84c83c5c4f03a8 (patch)
tree521c1f8ccf8aa355b4ad1671425b96283e8abbd7 /keyboards/z12/z12.c
parentb0d293a841977d393c81bef443f7e28f7764ee30 (diff)
[Keymap] zigotica userspace (#14670)
Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Ryan <fauxpark@gmail.com>
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