aboutsummaryrefslogtreecommitdiffstats
path: root/src/globals.c
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2023-07-12 18:24:46 +0200
committerBad Diode <bd@badd10de.dev>2023-07-12 18:24:46 +0200
commit20b1b448b7a1c8e22cb2e0f2d6294533f7a220af (patch)
treee9a6c30530ec6d222e778d83f6f6bca49d0ca378 /src/globals.c
parentd2be261b88753c3e0fdeb7588057aa3f1648ead5 (diff)
downloadstepper-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.c11
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
121static Scene scene = SCENE_SEQUENCER; 121static Scene scene = SCENE_SEQUENCER;
122static Scene next_scene = SCENE_SEQUENCER; 122static Scene next_scene = SCENE_SEQUENCER;
123
124typedef 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
131static Notification notif = {0};
132
133#define NOTIF_TIME (80 + 32)