mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-12 10:51:33 +00:00
Update keymap.c
This commit is contained in:
parent
d4f6920309
commit
21decafb68
@ -43,38 +43,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
_______, _______, _______, _______, _______, _______, _______, RGB_SAD, RGB_VAD, RGB_SAI),
|
_______, _______, _______, _______, _______, _______, _______, RGB_SAD, RGB_VAD, RGB_SAI),
|
||||||
};
|
};
|
||||||
// clang-format on
|
// clang-format on
|
||||||
bool process_record_user(uint16_t keycode, keyrecord_t *record)
|
|
||||||
{
|
|
||||||
switch (keycode)
|
|
||||||
{
|
|
||||||
case RGB_TOG:
|
|
||||||
if (record->event.pressed)
|
|
||||||
{
|
|
||||||
switch (rgb_matrix_get_flags())
|
|
||||||
{
|
|
||||||
case LED_FLAG_ALL:
|
|
||||||
{
|
|
||||||
rgb_matrix_set_flags(LED_FLAG_NONE);
|
|
||||||
rgb_matrix_set_color_all(0, 0, 0);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
{
|
|
||||||
rgb_matrix_set_flags(LED_FLAG_ALL);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!rgb_matrix_is_enabled())
|
|
||||||
{
|
|
||||||
rgb_matrix_set_flags(LED_FLAG_ALL);
|
|
||||||
rgb_matrix_enable();
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
default:
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#ifdef RGB_MATRIX_ENABLE
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max)
|
bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user