You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
795 B

  1. #include "custom_rgb.h"
  2. #if defined(RGBLIGHT_ENABLE)
  3. extern rgblight_config_t rgblight_config;
  4. rgblight_config_t _pushed_rgblight_config;
  5. #define push_rgb_config() { if (_pushed_rgblight_config.raw == 0) { _pushed_rgblight_config.raw = rgblight_config.raw; } }
  6. #define pop_rgb_config() { if (_pushed_rgblight_config.raw == 0) { rgblight_config.raw = _pushed_rgblight_config.raw; _pushed_rgblight_config.raw = 0; } }
  7. #elif defined(RGB_MATRIX_ENABLE)
  8. extern rgb_config_t rgb_matrix_config;
  9. rgb_config_t _pushed_rgb_matrix_config;
  10. #define push_rgb_config() _pushed_rgb_matrix_config.raw = rgb_matrix_config.raw
  11. #define pop_rgb_config() rgb_matrix_config.raw = _pushed_rgb_matrix_config.raw
  12. #endif
  13. bool process_record_rgb(uint16_t keycode, keyrecord_t *record) {
  14. return true;
  15. }