1
0
Fork 0

[Keymap] zigotica userspace (#14670)

Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
This commit is contained in:
Sergi Meseguer 2021-10-16 04:02:04 +02:00 committed by GitHub
parent b0d293a841
commit 40badc4413
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 1057 additions and 19 deletions

View file

@ -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