Allow specifying the threshold value that alters the state of a boolean data-lake variable from the joystick
Nice!
Also this approach can lead us to allow several variables to share the same input by assigning different ranges—for instance, use 0–79 % for focus control and 80–100 % to fire the camera.
The title is unclear about what the threshold is applying to, but I believe this is following on from discussion in #1675, with some relevance to the conditional triggering mentioned in point 3 of #1538.
If I'm understanding the intent correctly that this would be for a variable value from a joystick input, this will be minimally available once #1658 is implemented, because the output could be assigned to a variable that's then used in a compound variable which applies a threshold, or it could be used in an Action that calls other Actions depending on the value range.
#1883 may help to make the relevant interface less convoluted, although we could also implement a forward-setting helper that creates the switching function from a nicer user-interface if that seems worthwhile. That said, it could be sufficient to just provide a "conditional-caller" Action template which provides basic thresholds, and more complex use-cases can just be defined manually with a JS function.