Skip to Content
sdeck docs

Behavior

What a press, a hold or a double press does.

Under Behavior, a button has a mode:

ModeWhat it does
PressRuns when pressed.
ReleaseRuns when let go.
TogglePresses alternate between on and off. Off undoes what on did, or runs steps you choose.
CycleEach press runs the next entry, then starts over.
RepeatRuns on press, then again and again while held.
HoldOn 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.

On this page