diff options
Diffstat (limited to 'quantum/visualizer/visualizer.h')
-rw-r--r-- | quantum/visualizer/visualizer.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/quantum/visualizer/visualizer.h b/quantum/visualizer/visualizer.h index 53e250725..315af5022 100644 --- a/quantum/visualizer/visualizer.h +++ b/quantum/visualizer/visualizer.h | |||
@@ -34,10 +34,14 @@ SOFTWARE. | |||
34 | #include "lcd_backlight.h" | 34 | #include "lcd_backlight.h" |
35 | #endif | 35 | #endif |
36 | 36 | ||
37 | // use this function to merget both real_mods and oneshot_mods in a uint16_t | ||
38 | uint8_t visualizer_get_mods(void); | ||
39 | |||
37 | // This need to be called once at the start | 40 | // This need to be called once at the start |
38 | void visualizer_init(void); | 41 | void visualizer_init(void); |
39 | // This should be called at every matrix scan | 42 | // This should be called at every matrix scan |
40 | void visualizer_update(uint32_t default_state, uint32_t state, uint32_t leds); | 43 | void visualizer_update(uint32_t default_state, uint32_t state, uint8_t mods, uint32_t leds); |
44 | |||
41 | // This should be called when the keyboard goes to suspend state | 45 | // This should be called when the keyboard goes to suspend state |
42 | void visualizer_suspend(void); | 46 | void visualizer_suspend(void); |
43 | // This should be called when the keyboard wakes up from suspend state | 47 | // This should be called when the keyboard wakes up from suspend state |
@@ -61,6 +65,7 @@ struct keyframe_animation_t; | |||
61 | typedef struct { | 65 | typedef struct { |
62 | uint32_t layer; | 66 | uint32_t layer; |
63 | uint32_t default_layer; | 67 | uint32_t default_layer; |
68 | uint8_t mods; | ||
64 | uint32_t leds; // See led.h for available statuses | 69 | uint32_t leds; // See led.h for available statuses |
65 | bool suspended; | 70 | bool suspended; |
66 | } visualizer_keyboard_status_t; | 71 | } visualizer_keyboard_status_t; |
@@ -129,6 +134,8 @@ bool keyframe_set_backlight_color(keyframe_animation_t* animation, visualizer_st | |||
129 | bool keyframe_display_layer_text(keyframe_animation_t* animation, visualizer_state_t* state); | 134 | bool keyframe_display_layer_text(keyframe_animation_t* animation, visualizer_state_t* state); |
130 | // Displays a bitmap (0/1) of all the currently active layers | 135 | // Displays a bitmap (0/1) of all the currently active layers |
131 | bool keyframe_display_layer_bitmap(keyframe_animation_t* animation, visualizer_state_t* state); | 136 | bool keyframe_display_layer_bitmap(keyframe_animation_t* animation, visualizer_state_t* state); |
137 | // Displays a bitmap (0/1) of all the currently active mods | ||
138 | bool keyframe_display_mods_bitmap(keyframe_animation_t* animation, visualizer_state_t* state); | ||
132 | 139 | ||
133 | bool keyframe_disable_lcd_and_backlight(keyframe_animation_t* animation, visualizer_state_t* state); | 140 | bool keyframe_disable_lcd_and_backlight(keyframe_animation_t* animation, visualizer_state_t* state); |
134 | bool keyframe_enable_lcd_and_backlight(keyframe_animation_t* animation, visualizer_state_t* state); | 141 | bool keyframe_enable_lcd_and_backlight(keyframe_animation_t* animation, visualizer_state_t* state); |