1
0
Fork 0

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:
Drashna Jael're 2022-10-04 15:24:22 -07:00 committed by GitHub
parent 09d3e27710
commit 64b1ed4550
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
218 changed files with 1430 additions and 1271 deletions

View file

@ -60,12 +60,12 @@ led_config_t g_led_config = { {
},
{
//LED Index to Physical Positon
{ 0, 0}, { 75, 0}, {149, 0}, {224, 0},
{ 0, 13}, { 75, 13}, {149, 13}, {224, 13},
{ 0, 25}, { 75, 25}, {149, 25}, {224, 25},
{ 0, 38}, { 75, 38}, {149, 38}, {224, 38},
{ 0, 51}, { 75, 51}, {149, 51}, {224, 51},
{ 0, 64}, { 37, 64}, { 75, 64}, {149, 64}, {224, 64},
{ 0, 0}, { 75, 0}, {149, 0}, {224, 0},
{ 0, 13}, { 75, 13}, {149, 13}, {224, 13},
{ 0, 25}, { 75, 25}, {149, 25}, {224, 25},
{ 0, 38}, { 75, 38}, {149, 38}, {224, 38},
{ 0, 51}, { 75, 51}, {149, 51}, {224, 51},
{ 0, 64}, { 37, 64}, { 75, 64}, {149, 64}, {224, 64},
}, {
4, 4, 4, 4,
4, 1, 1, 4,
@ -75,10 +75,14 @@ led_config_t g_led_config = { {
4, 0, 1, 1, 4,
} };
void rgb_matrix_indicators_kb(void) {
if (host_keyboard_led_state().num_lock) {
rgb_matrix_set_color(4, 255, 255, 255);
}
bool rgb_matrix_indicators_kb(void) {
if (!rgb_matrix_indicators_user()) {
return false;
}
if (host_keyboard_led_state().num_lock) {
rgb_matrix_set_color(4, 255, 255, 255);
}
return true;
}
__attribute__((weak))
@ -117,7 +121,7 @@ layer_state_t layer_state_set_user(layer_state_t state) {
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
if (!process_record_user(keycode, record)) { return false; }
if (record->event.pressed) {
switch(keycode) {
#ifdef RGB_MATRIX_ENABLE