aboutsummaryrefslogtreecommitdiff
path: root/quantum/process_keycode/process_rgb_matrix.c
diff options
context:
space:
mode:
authorJoel Challis <[email protected]>2025-09-22 00:01:23 +0100
committerGitHub <[email protected]>2025-09-22 00:01:23 +0100
commit883465d9fb29cd793684ee0ac688ff3517cf8bc0 (patch)
treeb63c7e5fc0ab06c7e34cb2c3001315623a716cc5 /quantum/process_keycode/process_rgb_matrix.c
parent115bf771a8b07bd571ccac52f091e081794d40fd (diff)
downloadqmk_firmware-883465d9fb29cd793684ee0ac688ff3517cf8bc0.tar.gz
qmk_firmware-883465d9fb29cd793684ee0ac688ff3517cf8bc0.zip
Add generic handling to cycle LED/RGB Matrix flags (#24649)
Diffstat (limited to 'quantum/process_keycode/process_rgb_matrix.c')
-rw-r--r--quantum/process_keycode/process_rgb_matrix.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/quantum/process_keycode/process_rgb_matrix.c b/quantum/process_keycode/process_rgb_matrix.c
index fd2aa1a0c7..c18212294d 100644
--- a/quantum/process_keycode/process_rgb_matrix.c
+++ b/quantum/process_keycode/process_rgb_matrix.c
@@ -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;
}
}