[Keyboard] Update dynamis keyboard (#17625)

Co-authored-by: Drashna Jaelre <[email protected]>
This commit is contained in:
bbrfkrandDrashna Jaelre authored and GitHub committed 2022-08-28 21:47:30 -07:00
1 parent 38de991fda
commit a2294bcc97
7 files changed
+116 -110

No files matched your search

+6 -10
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