Add generic handling to cycle LED/RGB Matrix flags (#24649)

This commit is contained in:
Joel Challis 2025-09-22 00:01:23 +01:00 committed by GitHub
parent 115bf771a8
commit 883465d9fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 208 additions and 7 deletions

View file

@ -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;
}
}