diff options
| author | Joel Challis <git@zvecr.com> | 2025-09-22 00:01:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-22 00:01:23 +0100 |
| commit | 883465d9fb29cd793684ee0ac688ff3517cf8bc0 (patch) | |
| tree | b63c7e5fc0ab06c7e34cb2c3001315623a716cc5 /quantum/process_keycode/process_rgb_matrix.c | |
| parent | 115bf771a8b07bd571ccac52f091e081794d40fd (diff) | |
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.c | 14 |
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) { | |||
| 94 | rgb_matrix_decrease_speed(); | 94 | rgb_matrix_decrease_speed(); |
| 95 | } | 95 | } |
| 96 | return false; | 96 | return false; |
| 97 | case QK_RGB_MATRIX_FLAG_NEXT: | ||
| 98 | if (shifted) { | ||
| 99 | rgb_matrix_flags_step_reverse(); | ||
| 100 | } else { | ||
| 101 | rgb_matrix_flags_step(); | ||
| 102 | } | ||
| 103 | return false; | ||
| 104 | case QK_RGB_MATRIX_FLAG_PREVIOUS: | ||
| 105 | if (shifted) { | ||
| 106 | rgb_matrix_flags_step(); | ||
| 107 | } else { | ||
| 108 | rgb_matrix_flags_step_reverse(); | ||
| 109 | } | ||
| 110 | return false; | ||
| 97 | } | 111 | } |
| 98 | } | 112 | } |
| 99 | 113 | ||
