summaryrefslogtreecommitdiff
path: root/src/modules/rkt/rkt.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-07-05 20:11:21 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-07-05 20:11:21 -0700
commita96a3c4b6d59451a92540440db724274421e86e5 (patch)
treec0fb07f3b7be6a29d70934446c34a2edd7ccdc94 /src/modules/rkt/rkt.h
parentaaa646fef2c7b1af8ec2374033b2a9c87f170768 (diff)
modules/rkt: basic support for Rocket reconnects
This changes things so rkt won't exit with an error @ startup if RocketEditor isn't already listening. It also tolerates RocketEditor going away, and will show a "OFFLINE" overlay status text should that happen w/connect=on. Some status text has also been added to the "EXIT SCENE" 99999 scene for both the RocketEditor connection and the scener enabled/disabled status. No indicator yet for if scener has a connection though, only if it's listening or not via listen=on.
Diffstat (limited to 'src/modules/rkt/rkt.h')
-rw-r--r--src/modules/rkt/rkt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/rkt/rkt.h b/src/modules/rkt/rkt.h
index b06c6a4..ae0fa64 100644
--- a/src/modules/rkt/rkt.h
+++ b/src/modules/rkt/rkt.h
@@ -21,6 +21,7 @@ typedef struct rkt_context_t {
double rocket_row;
unsigned last_ticks;
unsigned paused:1;
+ unsigned connected:1; /* currently connected to the RocketEditor */
size_t n_scenes;
rkt_scene_t *scenes;
unsigned scene; /* current scene (usually driven by the scene track data,
© All Rights Reserved