Rename process_{led,rgb}_matrix() (#23422)

This commit is contained in:
Ryan 2024-04-06 01:43:52 +11:00 committed by GitHub
parent a14c03b96e
commit 9fa91ad494
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 6 additions and 6 deletions

View file

@ -500,10 +500,10 @@ void keyboard_init(void) {
*/
void switch_events(uint8_t row, uint8_t col, bool pressed) {
#if defined(LED_MATRIX_ENABLE)
process_led_matrix(row, col, pressed);
led_matrix_handle_key_event(row, col, pressed);
#endif
#if defined(RGB_MATRIX_ENABLE)
process_rgb_matrix(row, col, pressed);
rgb_matrix_handle_key_event(row, col, pressed);
#endif
}

View file

@ -159,7 +159,7 @@ void led_matrix_set_value_all(uint8_t value) {
#endif
}
void process_led_matrix(uint8_t row, uint8_t col, bool pressed) {
void led_matrix_handle_key_event(uint8_t row, uint8_t col, bool pressed) {
#ifndef LED_MATRIX_SPLIT
if (!is_keyboard_master()) return;
#endif

View file

@ -124,7 +124,7 @@ uint8_t led_matrix_map_row_column_to_led(uint8_t row, uint8_t column, uint8_t *l
void led_matrix_set_value(int index, uint8_t value);
void led_matrix_set_value_all(uint8_t value);
void process_led_matrix(uint8_t row, uint8_t col, bool pressed);
void led_matrix_handle_key_event(uint8_t row, uint8_t col, bool pressed);
void led_matrix_task(void);

View file

@ -156,7 +156,7 @@ void rgb_matrix_set_color_all(uint8_t red, uint8_t green, uint8_t blue) {
#endif
}
void process_rgb_matrix(uint8_t row, uint8_t col, bool pressed) {
void rgb_matrix_handle_key_event(uint8_t row, uint8_t col, bool pressed) {
#ifndef RGB_MATRIX_SPLIT
if (!is_keyboard_master()) return;
#endif

View file

@ -148,7 +148,7 @@ uint8_t rgb_matrix_map_row_column_to_led(uint8_t row, uint8_t column, uint8_t *l
void rgb_matrix_set_color(int index, uint8_t red, uint8_t green, uint8_t blue);
void rgb_matrix_set_color_all(uint8_t red, uint8_t green, uint8_t blue);
void process_rgb_matrix(uint8_t row, uint8_t col, bool pressed);
void rgb_matrix_handle_key_event(uint8_t row, uint8_t col, bool pressed);
void rgb_matrix_task(void);