1
0
Fork 0

[Keyboard] Update dynamis keyboard (#17625)

Co-authored-by: Drashna Jaelre <drashna@live.com>
This commit is contained in:
bbrfkr 2022-08-29 13:47:30 +09:00 committed by GitHub
parent 38de991fda
commit a2294bcc97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 116 additions and 110 deletions

View file

@ -18,16 +18,12 @@
#ifdef ENCODER_ENABLE
bool encoder_update_kb(uint8_t index, bool clockwise) {
if (!encoder_update_user(index, clockwise)) {
return false;
if (!encoder_update_user(index, clockwise)) { return false; }
if (clockwise) {
tap_code(layer_state == 0 ? KC_WH_D : KC_VOLD);
} else {
tap_code(layer_state == 0 ? KC_WH_U : KC_VOLU);
}
if (index == 0) { /* First encoder */
if (clockwise) {
tap_code(KC_WH_D);
} else {
tap_code(KC_WH_U);
}
}
return false;
return true;
}
#endif