1
0
Fork 0

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

@ -14,10 +14,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "rgb_functions.h"
#include <stdint.h>
#include "quantum.h"
#include "action.h"
#include "rgblight.h"
#include "rgb_matrix.h"
@ -39,44 +35,3 @@ const rgblight_driver_t rgblight_driver = {
.flush = ws2812_flush,
};
#endif
#ifdef RGB_MATRIX_ENABLE
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
if (!process_record_user(keycode, record)) { return false; }
if (record->event.pressed) {
switch(keycode) {
case RGB_MATRIX_TOGGLE: // toggle rgb matrix
rgb_matrix_toggle();
return false;
case RGB_MATRIX_MODE_INC:
rgb_matrix_step();
return false;
case RGB_MATRIX_MODE_DEC:
rgb_matrix_step_reverse();
return false;
case RGB_MATRIX_HUE_INC:
rgb_matrix_increase_hue();
return false;
case RGB_MATRIX_HUE_DEC:
rgb_matrix_decrease_hue();
return false;
case RGB_MATRIX_SAT_INC:
rgb_matrix_increase_sat();
return false;
case RGB_MATRIX_SAT_DEC:
rgb_matrix_decrease_sat();
return false;
case RGB_MATRIX_VAL_INC:
rgb_matrix_increase_val();
return false;
case RGB_MATRIX_VAL_DEC:
rgb_matrix_decrease_val();
return false;
default:
break;
}
}
return true;
}
#endif