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
76c23b15ab
commit
a0fed0ea17
437 changed files with 2542 additions and 2135 deletions
|
@ -1,7 +1,7 @@
|
|||
/* Keymap _0: (Base Layer) Default Layer
|
||||
|
||||
* .-----------.
|
||||
* |PGUP | PGDN|
|
||||
* |PGUP | PGDN|
|
||||
* |-----------------------.
|
||||
* | 7 | 8 | 9 | MO1 |
|
||||
* |-----|-----|-----|-----|
|
||||
|
@ -15,7 +15,7 @@
|
|||
/* Keymap _1: (Second Layer) second Layer
|
||||
|
||||
* .---------------.
|
||||
* |NUMLOCK|Calc. |
|
||||
* |NUMLOCK|Calc. |
|
||||
* |--------------------------------.
|
||||
* |RGB_TOG|RGB_MOD|RGB_M_K|RGB_M_X |
|
||||
* |-------|-------|-------|--------|
|
||||
|
@ -52,7 +52,7 @@ static void render_logo(void) {
|
|||
void oled_task_user(void) { render_logo(); }
|
||||
#endif
|
||||
|
||||
void encoder_update_user(uint8_t index, bool clockwise) {
|
||||
bool encoder_update_user(uint8_t index, bool clockwise) {
|
||||
if (index == 0) {
|
||||
if (clockwise) {
|
||||
tap_code(KC_AUDIO_VOL_UP);
|
||||
|
@ -66,5 +66,6 @@ void encoder_update_user(uint8_t index, bool clockwise) {
|
|||
tap_code(KC_BRIGHTNESS_DOWN);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
void matrix_init_user(void) { render_logo(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue