mirror of
https://github.com/qmk/qmk_userspace.git
synced 2025-07-04 19:00:34 -04:00
Convert Encoder callbacks to be boolean functions (#12805)
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
This commit is contained in:
parent
4d4211c70d
commit
768c92aab6
69 changed files with 462 additions and 396 deletions
|
@ -148,13 +148,14 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|||
return true;
|
||||
}
|
||||
|
||||
void encoder_update_user(uint8_t index, bool clockwise) {
|
||||
bool encoder_update_user(uint8_t index, bool clockwise) {
|
||||
// Encoder is mapped to volume functions by default
|
||||
if (clockwise) {
|
||||
tap_code(KC_VOLU);
|
||||
} else {
|
||||
tap_code(KC_VOLD);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void matrix_init_user(void) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue