Add generic handling to cycle LED/RGB Matrix flags (#24649)
This commit is contained in:
parent
115bf771a8
commit
883465d9fb
13 changed files with 208 additions and 7 deletions
|
|
@ -94,6 +94,20 @@ bool process_rgb_matrix(uint16_t keycode, keyrecord_t *record) {
|
|||
rgb_matrix_decrease_speed();
|
||||
}
|
||||
return false;
|
||||
case QK_RGB_MATRIX_FLAG_NEXT:
|
||||
if (shifted) {
|
||||
rgb_matrix_flags_step_reverse();
|
||||
} else {
|
||||
rgb_matrix_flags_step();
|
||||
}
|
||||
return false;
|
||||
case QK_RGB_MATRIX_FLAG_PREVIOUS:
|
||||
if (shifted) {
|
||||
rgb_matrix_flags_step();
|
||||
} else {
|
||||
rgb_matrix_flags_step_reverse();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue