Fix Per Key LED Indicator Callbacks (#18450)
Co-authored-by: Dasky <32983009+daskygit@users.noreply.github.com> Co-authored-by: Nick Brassel <nick@tzarc.org>
This commit is contained in:
@@ -25,13 +25,17 @@ void matrix_init_kb(void) {
|
||||
}
|
||||
|
||||
/* Set LED 62 (Caps Lock) and LED 14 (Scroll Lock) when key active */
|
||||
void rgb_matrix_indicators_kb(void) {
|
||||
bool rgb_matrix_indicators_kb(void) {
|
||||
if (!rgb_matrix_indicators_user()) {
|
||||
return false;
|
||||
}
|
||||
if (host_keyboard_led_state().caps_lock) {
|
||||
rgb_matrix_set_color(62, 255, 255, 255);
|
||||
}
|
||||
if (host_keyboard_led_state().scroll_lock) {
|
||||
rgb_matrix_set_color(14, 255, 255, 255);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/* Leds on the CU80 go ltr > rtl > ltr > rlt > Ltr > rtl */
|
||||
|
@@ -24,13 +24,17 @@ void matrix_init_kb(void) {
|
||||
}
|
||||
|
||||
/* Set LED 62 (Caps Lock) and LED 14 (Scroll Lock) when key active */
|
||||
void rgb_matrix_indicators_kb(void) {
|
||||
bool rgb_matrix_indicators_kb(void) {
|
||||
if (!rgb_matrix_indicators_user()) {
|
||||
return false;
|
||||
}
|
||||
if (host_keyboard_led_state().caps_lock) {
|
||||
rgb_matrix_set_color(62, 255, 255, 255);
|
||||
}
|
||||
if (host_keyboard_led_state().scroll_lock) {
|
||||
rgb_matrix_set_color(14, 255, 255, 255);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/* Leds on the CU80 go ltr > rtl > ltr > rlt > Ltr > rtl */
|
||||
|
Reference in New Issue
Block a user