Vixen
02b45cc4
csharp
public interface IInputInteraction

A pattern over time that decides when an actuated control counts as having acted.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Stateful, and one instance per binding: a hold has a clock, a multi-tap has a count, and two bindings of the same action must be able to be half-way through their own. That is why InputInteractionFactory builds a fresh one per binding rather than sharing, and why processors — which are pure — are shared and these are not.

An interaction never reads a control. It is handed a magnitude and a time and returns what it decided, which is what makes every one of them testable without a device.

Fields and properties (1)

  • string Name

    The name it is written under in a .vxinput.

Methods (2)

Used by (10)

  • HoldInteractionVixen.Input
  • InputActionVixen.Input
  • InputBindingVixen.Input
  • InputInteractionFactoryVixen.Input
  • MultiTapInteractionVixen.Input
  • PassThroughInteractionVixen.Input
  • PressInteractionVixen.Input
  • SlowTapInteractionVixen.Input
  • TapInteractionVixen.Input
  • ValueInteractionVixen.Input