From a96a3c4b6d59451a92540440db724274421e86e5 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 5 Jul 2023 20:11:21 -0700 Subject: 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. --- src/modules/rkt/rkt.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/modules/rkt/rkt.h') 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, -- cgit v1.2.1