Fudge Core
    Preparing search index...

    Class Axis

    Handles multiple controls as inputs and creates an output from that. As a subclass of Control, axis calculates the ouput summing up the inputs and processing the result using its own settings.
    Dispatches EVENT_CONTROL.OUTPUT and EVENT_CONTROL.INPUT when one of the controls dispatches them.

              ┌───────────────────────────────────────────┐
              │ ┌───────┐                                 │
      Input → │ │control│\                                │
              │ └───────┘ \                               │
              │ ┌───────┐  \┌───┐   ┌─────────────────┐   │
      Input → │ │control│---│sum│ → │internal control │ → │ → Output
              │ └───────┘  /└───┘   └─────────────────┘   │
              │ ┌───────┐ /                               │
      Input → │ │control│/                                │
              │ └───────┘                                 │
              └───────────────────────────────────────────┘  
    

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    active: boolean
    name: string

    Methods

    • Removes the control with the given name

      Parameters

      • _name: string

      Returns void

    • Set the number of output-events to dispatch per second. At the default of 0, the control output must be polled and will only actively dispatched once each time input occurs and the output changes.

      Parameters

      • _rateDispatchOutput: number = 0

      Returns void