diff options
Diffstat (limited to 'quantum/visualizer/visualizer.h')
-rw-r--r-- | quantum/visualizer/visualizer.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/quantum/visualizer/visualizer.h b/quantum/visualizer/visualizer.h index 2c81cb9f7..beb8f2ab4 100644 --- a/quantum/visualizer/visualizer.h +++ b/quantum/visualizer/visualizer.h | |||
@@ -68,6 +68,9 @@ typedef struct { | |||
68 | uint8_t mods; | 68 | uint8_t mods; |
69 | uint32_t leds; // See led.h for available statuses | 69 | uint32_t leds; // See led.h for available statuses |
70 | bool suspended; | 70 | bool suspended; |
71 | #ifdef VISUALIZER_USER_DATA_SIZE | ||
72 | uint8_t user_data[VISUALIZER_USER_DATA_SIZE]; | ||
73 | #endif | ||
71 | } visualizer_keyboard_status_t; | 74 | } visualizer_keyboard_status_t; |
72 | 75 | ||
73 | // The state struct is used by the various keyframe functions | 76 | // The state struct is used by the various keyframe functions |
@@ -146,6 +149,11 @@ bool keyframe_enable_lcd_and_backlight(keyframe_animation_t* animation, visualiz | |||
146 | // directly from the initalize_user_visualizer function (the animation can be null) | 149 | // directly from the initalize_user_visualizer function (the animation can be null) |
147 | bool enable_visualization(keyframe_animation_t* animation, visualizer_state_t* state); | 150 | bool enable_visualization(keyframe_animation_t* animation, visualizer_state_t* state); |
148 | 151 | ||
152 | // The master can set userdata which will be transferred to the slave | ||
153 | #ifdef VISUALIZER_USER_DATA_SIZE | ||
154 | void visualizer_set_user_data(void* user_data); | ||
155 | #endif | ||
156 | |||
149 | // These functions have to be implemented by the user | 157 | // These functions have to be implemented by the user |
150 | void initialize_user_visualizer(visualizer_state_t* state); | 158 | void initialize_user_visualizer(visualizer_state_t* state); |
151 | void update_user_visualizer_state(visualizer_state_t* state, visualizer_keyboard_status_t prev_status); | 159 | void update_user_visualizer_state(visualizer_state_t* state, visualizer_keyboard_status_t prev_status); |