Engine API Reference - v2.9.1
    Preparing search index...

    Class InputSource<T>Alpha

    The base class for all input devices.

    Type Parameters

    • T extends Record<string, number[]>

      The shape of the input source.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    _element: null | HTMLElement = null
    deltas: { [K in string | number | symbol]: InputDelta } = ...

    Methods

    • Alpha

      Fires an event with the given name and arguments.

      Parameters

      • event: string

        The event name to fire.

      • ...args: any[]

        The arguments to pass to the event listeners.

      Returns void

    • Alpha

      Returns the current frame state and resets the deltas to zero.

      Returns { [K in string | number | symbol]: number[] }

      • The flushed input frame with current deltas.