]> git.donarmstrong.com Git - qmk_firmware.git/blob - users/kageurufu/custom_rgb.c
Add user-overridable callback for cancelling UCIS input (#5564)
[qmk_firmware.git] / users / kageurufu / custom_rgb.c
1 #include "custom_rgb.h"
2
3 #if defined(RGBLIGHT_ENABLE)
4   extern rgblight_config_t rgblight_config;
5   rgblight_config_t _pushed_rgblight_config;
6   #define push_rgb_config() { if (_pushed_rgblight_config.raw == 0) { _pushed_rgblight_config.raw = rgblight_config.raw; } }
7   #define pop_rgb_config() { if (_pushed_rgblight_config.raw == 0) { rgblight_config.raw = _pushed_rgblight_config.raw; _pushed_rgblight_config.raw = 0; } }
8 #elif defined(RGB_MATRIX_ENABLE)
9   extern rgb_config_t rgb_matrix_config;
10   rgb_config_t _pushed_rgb_matrix_config;
11   #define push_rgb_config() _pushed_rgb_matrix_config.raw = rgb_matrix_config.raw
12   #define pop_rgb_config() rgb_matrix_config.raw = _pushed_rgb_matrix_config.raw
13 #endif
14
15
16 bool process_record_rgb(uint16_t keycode, keyrecord_t *record) {
17   return true;
18 }