Separate RGBLight/RGB Matrix keycode handling (#23679)

* Separate RGBLight/RGB Matrix keycode handling

* Remove `_DISABLE_KEYCODES` handling

* Update RGB Matrix keycode docs

* Update underglow keycodes for previously migrated boards

* Update keycodes for boards with custom handling

* Fix typos

* Fix bad merge
This commit is contained in:
Ryan 2024-10-13 03:43:50 +11:00 committed by GitHub
parent 5c97a78ce6
commit 6fa11bf219
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
267 changed files with 1228 additions and 2276 deletions

View file

@ -191,7 +191,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
#else
return true;
#endif
case RGB_VAD:
case QK_RGB_MATRIX_VALUE_DOWN:
if (record->event.pressed) {
uint8_t level = rgb_matrix_config.hsv.v;
for (int i = sizeof(levels) - 1; i >= 0; i--) {
@ -203,7 +203,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
set_value_all_layers(level);
}
return false;
case RGB_VAI:
case QK_RGB_MATRIX_VALUE_UP:
if (record->event.pressed) {
uint8_t level = rgb_matrix_config.hsv.v;
for (int i = 0; i < sizeof(levels); i++) {
@ -215,7 +215,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
set_value_all_layers(level);
}
return false;
case RGB_TOG:
case QK_RGB_MATRIX_TOGGLE:
if (record->event.pressed) {
uint8_t level = 0;
if (rgb_matrix_config.hsv.v == 0) {