diff options
Diffstat (limited to 'quantum/rgb_matrix_animations/solid_reactive_wide.h')
| -rw-r--r-- | quantum/rgb_matrix_animations/solid_reactive_wide.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/quantum/rgb_matrix_animations/solid_reactive_wide.h b/quantum/rgb_matrix_animations/solid_reactive_wide.h index 3d1d38e80..ff0f6f5ec 100644 --- a/quantum/rgb_matrix_animations/solid_reactive_wide.h +++ b/quantum/rgb_matrix_animations/solid_reactive_wide.h | |||
| @@ -1,10 +1,15 @@ | |||
| 1 | #pragma once | ||
| 2 | #ifdef RGB_MATRIX_KEYREACTIVE_ENABLED | 1 | #ifdef RGB_MATRIX_KEYREACTIVE_ENABLED |
| 3 | #if !defined(DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE) || !defined(DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE) | 2 | #if !defined(DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE) || !defined(DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE) |
| 4 | 3 | ||
| 5 | extern led_config_t g_led_config; | 4 | #ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE |
| 6 | extern rgb_config_t rgb_matrix_config; | 5 | RGB_MATRIX_EFFECT(SOLID_REACTIVE_WIDE) |
| 7 | extern last_hit_t g_last_hit_tracker; | 6 | #endif |
| 7 | |||
| 8 | #ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE | ||
| 9 | RGB_MATRIX_EFFECT(SOLID_REACTIVE_MULTIWIDE) | ||
| 10 | #endif | ||
| 11 | |||
| 12 | #ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS | ||
| 8 | 13 | ||
| 9 | static bool rgb_matrix_solid_reactive_multiwide_range(uint8_t start, effect_params_t* params) { | 14 | static bool rgb_matrix_solid_reactive_multiwide_range(uint8_t start, effect_params_t* params) { |
| 10 | RGB_MATRIX_USE_LIMITS(led_min, led_max); | 15 | RGB_MATRIX_USE_LIMITS(led_min, led_max); |
| @@ -30,13 +35,14 @@ static bool rgb_matrix_solid_reactive_multiwide_range(uint8_t start, effect_para | |||
| 30 | return led_max < DRIVER_LED_TOTAL; | 35 | return led_max < DRIVER_LED_TOTAL; |
| 31 | } | 36 | } |
| 32 | 37 | ||
| 33 | bool rgb_matrix_solid_reactive_multiwide(effect_params_t* params) { | 38 | bool SOLID_REACTIVE_MULTIWIDE(effect_params_t* params) { |
| 34 | return rgb_matrix_solid_reactive_multiwide_range(0, params); | 39 | return rgb_matrix_solid_reactive_multiwide_range(0, params); |
| 35 | } | 40 | } |
| 36 | 41 | ||
| 37 | bool rgb_matrix_solid_reactive_wide(effect_params_t* params) { | 42 | bool SOLID_REACTIVE_WIDE(effect_params_t* params) { |
| 38 | return rgb_matrix_solid_reactive_multiwide_range(qsub8(g_last_hit_tracker.count, 1), params); | 43 | return rgb_matrix_solid_reactive_multiwide_range(qsub8(g_last_hit_tracker.count, 1), params); |
| 39 | } | 44 | } |
| 40 | 45 | ||
| 46 | #endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | ||
| 41 | #endif // !defined(DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE) || !defined(DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE) | 47 | #endif // !defined(DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE) || !defined(DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE) |
| 42 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED | 48 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED |
