[Keyboard] Fix Aurora Lily58 default encoder behaviour (#19424)

This commit is contained in:
leah-splitkb 2022-12-27 20:38:53 +01:00 committed by GitHub
parent b56c0fa674
commit 95e97fa839
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -286,8 +286,8 @@ bool encoder_update_kb(uint8_t index, bool clockwise) {
if (!encoder_update_user(index, clockwise)) { if (!encoder_update_user(index, clockwise)) {
return false; return false;
} }
// 0 and 1 are left-half encoders, // 0 is left-half encoder,
// 2 and 3 are right-half encoders // 1 is right-half encoder
if (index == 0) { if (index == 0) {
// Volume control // Volume control
if (clockwise) { if (clockwise) {
@ -296,20 +296,6 @@ bool encoder_update_kb(uint8_t index, bool clockwise) {
tap_code(KC_VOLD); tap_code(KC_VOLD);
} }
} else if (index == 1) { } else if (index == 1) {
// Volume control
if (clockwise) {
tap_code(KC_VOLU);
} else {
tap_code(KC_VOLD);
}
} else if (index == 2) {
// Page up/Page down
if (clockwise) {
tap_code(KC_PGDN);
} else {
tap_code(KC_PGUP);
}
} else if (index == 3) {
// Page up/Page down // Page up/Page down
if (clockwise) { if (clockwise) {
tap_code(KC_PGDN); tap_code(KC_PGDN);