Behavior
What a press, a hold or a double press does.
Under Behavior, a button has a mode:
| Mode | What it does |
|---|---|
| Press | Runs when pressed. |
| Release | Runs when let go. |
| Toggle | Presses alternate between on and off. Off undoes what on did, or runs steps you choose. |
| Cycle | Each press runs the next entry, then starts over. |
| Repeat | Runs on press, then again and again while held. |
| Hold | On only while held. Letting go undoes what pressing did, or runs the steps under When let go. |
Hold is for push to talk, a peek at another page, or a light that is on while you press. If what pressing does takes a while, letting go waits for it. It always follows, also when the page changed in between or the deck was unplugged.
Dials
On a deck with dials, choose one, or the part of the touch strip above it, and give it an action. Pressing the dial and tapping the strip both do what pressing a key does. What turning it does is under Turned left and Turned right: those steps run once for every step it turns.
Some actions do that by themselves. Put Volume or Brightness on a dial and turning it changes the level, by the step in its settings. Steps of your own run instead.
A page keeps its dials apart from its window, so one setup can serve a Neo and a Stream Deck + together. While no page uses a dial, the strip shows the window.
Looks
Looks can follow it: self.on is true while the button is on, and self.held while it is pressed, in
any mode. Use them in a state, or as a layer's condition for showing.