diff options
author | Bad Diode <bd@badd10de.dev> | 2023-07-12 18:24:46 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2023-07-12 18:24:46 +0200 |
commit | 20b1b448b7a1c8e22cb2e0f2d6294533f7a220af (patch) | |
tree | e9a6c30530ec6d222e778d83f6f6bca49d0ca378 /src/globals.c | |
parent | d2be261b88753c3e0fdeb7588057aa3f1648ead5 (diff) | |
download | stepper-20b1b448b7a1c8e22cb2e0f2d6294533f7a220af.tar.gz stepper-20b1b448b7a1c8e22cb2e0f2d6294533f7a220af.zip |
Add a notification system and use it for save/copy/paste events
Diffstat (limited to 'src/globals.c')
-rw-r--r-- | src/globals.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/globals.c b/src/globals.c index 2f4d32d..c2e2ee2 100644 --- a/src/globals.c +++ b/src/globals.c | |||
@@ -120,3 +120,14 @@ typedef enum Scene { | |||
120 | 120 | ||
121 | static Scene scene = SCENE_SEQUENCER; | 121 | static Scene scene = SCENE_SEQUENCER; |
122 | static Scene next_scene = SCENE_SEQUENCER; | 122 | static Scene next_scene = SCENE_SEQUENCER; |
123 | |||
124 | typedef struct Notification { | ||
125 | // We can only fit 31 characters on the notification bar at the moment. | ||
126 | // Leaving an extra character for \0. | ||
127 | char msg[32]; | ||
128 | s16 time; | ||
129 | } Notification; | ||
130 | |||
131 | static Notification notif = {0}; | ||
132 | |||
133 | #define NOTIF_TIME (80 + 32) | ||