Back to Engineering Blog
Systems Design 3 min read

One Button, Six Gestures: A Deterministic Input Design

With a single physical button, the handheld needs taps, holds and a deliberate confirm gesture for risky actions. We wrote the timing rules down as a state machine so the same gesture always does the same thing.

Jason NevillBy , Houston, TX
#UX#StateMachine#Hardware#Safety

Key Architectural Takeaways

  • Define each gesture by exact timing thresholds so the same press always means the same thing.
  • Make destructive confirmation a physical act that takes sustained effort, and make every other gesture cancel it.
  • Give the same gesture a consistent meaning across modes wherever you can, and show the cue on screen.

The challenge

The handheld has one button. It needs to push to talk, move between three screens, scroll a list, toggle a quiet mode, and, rarely, confirm an action that changes something real. Every added input risks a false trigger in a device that lives in a pocket.

The design

Gestures are classified by timing alone:

  • Short tap — Timing: released under 350 ms; In Assistant: Dismiss or interrupt audio; In Ops list: Next item; In a confirm screen: Cancel
  • Double tap — Timing: two taps within 450 ms; In Assistant: Go to Ops list; In Ops list: Go to standby; In a confirm screen: Cancel
  • Triple tap — Timing: three taps within 600 ms; In Assistant: Toggle quiet mode; In Ops list: Toggle quiet mode; In a confirm screen: Cancel
  • Hold — Timing: pressed 500 ms or more; In Assistant: Start recording; In Ops list: Start a voice query; In a confirm screen: Begin the confirm timer
  • Hold, then release — Timing: release after a hold; In Assistant: Send the recording; In Ops list: Send the query; In a confirm screen: Abort if under three seconds
  • Long hold — Timing: held for 3.0 s; In Assistant: Safe reset; In Ops list: Safe reset; In a confirm screen: Confirm the action

The mode cycle is itself a gesture: double tap moves Assistant to Ops list to Standby and back around.

Why these rules

Timing windows, not pattern guessing. Each threshold is a constant, so the behaviour is predictable and testable. A press is either shorter than 350 ms or it is not.

Confirmation is effort. The riskiest action, confirming a gated change, requires holding the button for three full seconds while a progress bar fills. Releasing early aborts, and a short tap cancels immediately. In the confirm screen, every other gesture cancels. There is no accidental path from a pocket press to an approved action.

A visible hazard screen. The confirm view has a crimson border, the target system and who initiated the request. You never confirm something you cannot read.

Cues on screen. A bottom bar always shows what a hold, a double tap and a triple tap will do in the current mode, so the user does not need to memorise the table.

Verification

The gesture engine is deterministic, so the timing rules are unit-testable. On the hardware, taps and a long hold were captured from the button in the device log.

Takeaway

When you have very little input, make the dangerous action the hardest one to perform and make everything else cancel it. Safe defaults beat clever shortcuts.

Some of what's described here is a design that hasn't been fully tested yet; those parts say so in the text.

Follow the build on LinkedIn or by RSS.

All Articles

Follow the build

Questions about the build, or spotted something we got wrong? Find us on LinkedIn and GitHub.