|
|
|
@ -245,8 +245,10 @@ void hurt_paddle(void) { |
|
|
|
|
bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) { |
|
|
|
|
if (get_rgb_nightmode()) rgb_matrix_set_color_all(RGB_OFF); |
|
|
|
|
|
|
|
|
|
led_t led_state = host_keyboard_led_state(); |
|
|
|
|
|
|
|
|
|
// Scroll Lock RGB setup
|
|
|
|
|
if (IS_HOST_LED_ON(USB_LED_SCROLL_LOCK)) { |
|
|
|
|
if (led_state.scroll_lock) { |
|
|
|
|
rgb_matrix_set_color(LED_L3, RGB_RED); |
|
|
|
|
rgb_matrix_set_color(LED_L4, RGB_RED); |
|
|
|
|
rgb_matrix_set_color(LED_TAB, RGB_RED); |
|
|
|
@ -256,7 +258,7 @@ bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) { |
|
|
|
|
/*
|
|
|
|
|
// System NumLock warning indicator RGB setup
|
|
|
|
|
#ifdef INVERT_NUMLOCK_INDICATOR |
|
|
|
|
if (!IS_HOST_LED_ON(USB_LED_NUM_LOCK)) { // on if NUM lock is OFF to bring attention to overlay numpad not functional when enabled
|
|
|
|
|
if (!led_state.num_lock) { // on if NUM lock is OFF to bring attention to overlay numpad not functional when enabled
|
|
|
|
|
rgb_matrix_set_color(LED_GRV, RGB_ORANGE2); |
|
|
|
|
rgb_matrix_set_color(LED_L1, RGB_ORANGE2); |
|
|
|
|
rgb_matrix_set_color(LED_L2, RGB_ORANGE2); |
|
|
|
@ -264,7 +266,7 @@ bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) { |
|
|
|
|
rgb_matrix_set_color(LED_FN, RGB_ORANGE2); |
|
|
|
|
} |
|
|
|
|
#else |
|
|
|
|
if (IS_HOST_LED_ON(USB_LED_NUM_LOCK)) { // Normal, on if NUM lock is ON
|
|
|
|
|
if (led_state.num_lock) { // Normal, on if NUM lock is ON
|
|
|
|
|
rgb_matrix_set_color(LED_GRV, RGB_ORANGE2); |
|
|
|
|
rgb_matrix_set_color(LED_L1, RGB_ORANGE2); |
|
|
|
|
rgb_matrix_set_color(LED_L2, RGB_ORANGE2); |
|
|
|
@ -275,7 +277,7 @@ bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) { |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
// CapsLock RGB setup
|
|
|
|
|
if (IS_HOST_LED_ON(USB_LED_CAPS_LOCK)) { |
|
|
|
|
if (led_state.caps_lock) { |
|
|
|
|
if (user_config.rgb_hilite_caps) { |
|
|
|
|
for (uint8_t i = 0; i < ARRAYSIZE(LED_LIST_LETTERS); i++) { |
|
|
|
|
rgb_matrix_set_color(LED_LIST_LETTERS[i], RGB_CHARTREUSE); |
|
|
|
@ -360,11 +362,11 @@ bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) { |
|
|
|
|
|
|
|
|
|
// System NumLock warning indicator RGB setup
|
|
|
|
|
#ifdef INVERT_NUMLOCK_INDICATOR |
|
|
|
|
if (!IS_HOST_LED_ON(USB_LED_NUM_LOCK)) { // on if NUM lock is OFF to bring attention to overlay numpad not functional when enabled
|
|
|
|
|
if (!led_state.num_lock) { // on if NUM lock is OFF to bring attention to overlay numpad not functional when enabled
|
|
|
|
|
rgb_matrix_set_color(LED_N, RGB_ORANGE2); |
|
|
|
|
} |
|
|
|
|
#else |
|
|
|
|
if (IS_HOST_LED_ON(USB_LED_NUM_LOCK)) { // Normal, on if NUM lock is ON
|
|
|
|
|
if (led_state.num_lock) { // Normal, on if NUM lock is ON
|
|
|
|
|
rgb_matrix_set_color(LED_N, RGB_ORANGE2); |
|
|
|
|
} |
|
|
|
|
#endif // INVERT_NUMLOCK_INDICATOR
|
|
|
|
@ -432,11 +434,11 @@ bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) { |
|
|
|
|
// Numpad & Mouse Keys overlay RGB
|
|
|
|
|
case _NUMPADMOUSE: |
|
|
|
|
#ifdef INVERT_NUMLOCK_INDICATOR |
|
|
|
|
if (!IS_HOST_LED_ON(USB_LED_NUM_LOCK)) { // on if NUM lock is OFF to bring attention to overlay numpad not functional when enabled
|
|
|
|
|
if (!led_state.num_lock) { // on if NUM lock is OFF to bring attention to overlay numpad not functional when enabled
|
|
|
|
|
rgb_matrix_set_color(LED_N, RGB_ORANGE2); |
|
|
|
|
} |
|
|
|
|
#else |
|
|
|
|
if (IS_HOST_LED_ON(USB_LED_NUM_LOCK)) { // Normal, on if NUM lock is ON
|
|
|
|
|
if (led_state.num_lock) { // Normal, on if NUM lock is ON
|
|
|
|
|
rgb_matrix_set_color(LED_N, RGB_ORANGE2); |
|
|
|
|
} |
|
|
|
|
#endif // INVERT_NUMLOCK_INDICATOR
|
|
|
|
|