summaryrefslogtreecommitdiff
path: root/src/til.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-12-01 11:59:08 -0800
committerVito Caputo <vcaputo@pengaru.com>2023-12-01 12:14:33 -0800
commita8d8fecb9d97cc6e4c3ff82771e98243a037691b (patch)
tree2c384a012caf95dee4a2cdf8c3ef94273daaa66f /src/til.c
parentf50deea84933330010f7ce8bf5d0a8139c452490 (diff)
modules/book: implement a flipbook module
This module cycles through a set of modules referred to as pages. Settings include: pages={list,of,modules} rate=float page flipping rate direction=float page flipping direction taps are exposed for controlling rate and direction real-time, with the addition of an explicit page index tap for overriding the automatic flipping normally influenced by rate and direction. Note that when using rkt with these taps, it immediately becomes limiting that there's no ability to specify NaN as a track value for temporarily relinquishing control of the page idx. It'd be very useful to let the automatic flipping run the show at whatever rate the rkt tracks specify, until the page idx was asserted to a specific page, then holding it on that page until a NaN row for the page track was encountered, restoring automatic flipping. This needs to get added in both the Rocket library and RocketEditor to be supported, as well as getting wired up to the rkt integration.
Diffstat (limited to 'src/til.c')
-rw-r--r--src/til.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/til.c b/src/til.c
index b773e99..18733d9 100644
--- a/src/til.c
+++ b/src/til.c
@@ -29,6 +29,7 @@ static til_threads_t *til_threads;
static struct timeval til_start_tv;
extern til_module_t blinds_module;
+extern til_module_t book_module;
extern til_module_t checkers_module;
extern til_module_t compose_module;
extern til_module_t drizzle_module;
@@ -70,6 +71,7 @@ extern til_module_t _pre_module;
extern til_module_t _ref_module;
static const til_module_t *modules[] = {
+ &book_module,
&blinds_module,
&checkers_module,
&compose_module,
© All Rights Reserved