From 20b1b448b7a1c8e22cb2e0f2d6294533f7a220af Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Wed, 12 Jul 2023 18:24:46 +0200 Subject: Add a notification system and use it for save/copy/paste events --- src/globals.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/globals.c') 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 { static Scene scene = SCENE_SEQUENCER; static Scene next_scene = SCENE_SEQUENCER; + +typedef struct Notification { + // We can only fit 31 characters on the notification bar at the moment. + // Leaving an extra character for \0. + char msg[32]; + s16 time; +} Notification; + +static Notification notif = {0}; + +#define NOTIF_TIME (80 + 32) -- cgit v1.2.1