Convert Encoder callbacks to be boolean functions (#12805)
Co-authored-by: James Young <[email protected]>
This commit is contained in:
1 parent
76c23b15ab
commit
a0fed0ea17
437 files changed
+2542
-2135
No files matched your search
@@ -122,12 +122,13 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
}
|
||||
|
||||
|
||||
void encoder_update_user(uint8_t index, bool clockwise) {
|
||||
bool encoder_update_user(uint8_t index, bool clockwise) {
|
||||
if (clockwise) {
|
||||
tap_code(KC_VOLU);
|
||||
} else {
|
||||
tap_code(KC_VOLD);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void matrix_init_user(void) {
|
||||
|
||||
Reference in new issue
Block a user