Remove encoder in-matrix workaround code (#20389)

This commit is contained in:
jack
2023-06-19 09:46:27 -06:00
committed by GitHub
parent 74fbd5a031
commit c4a67d3f33
241 changed files with 1106 additions and 5235 deletions

View File

@@ -1,18 +0,0 @@
// Copyright 2021 @wekey (@@wekey)
// SPDX-License-Identifier: GPL-2.0-or-later
#include "quantum.h"
#if defined(ENCODER_ENABLE)
bool encoder_update_kb(uint8_t index, bool clockwise) {
if (!encoder_update_user(index, clockwise)) { return false; }
if (index == 0) {
if (clockwise) {
tap_code_delay(KC_VOLU, 10);
} else {
tap_code_delay(KC_VOLD, 10);
}
}
return true;
}
#endif