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

    Class MultiTouchSourceAlpha

    Multi-touch input source class

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    _element: null | HTMLElement = null
    deltas: { count: InputDelta; pinch: InputDelta; touch: InputDelta } = ...

    Type declaration

    • count: InputDelta

      The count deltas, represented as an array of integers.

    • pinch: InputDelta

      The pinch deltas, represented as an array of integers.

    • touch: InputDelta

      The touch deltas, represented as an array of [x, y] coordinates.

    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 { count: number[]; pinch: number[]; touch: number[] }

      • The flushed input frame with current deltas.
      • count: number[]

        The count deltas, represented as an array of integers.

      • pinch: number[]

        The pinch deltas, represented as an array of integers.

      • touch: number[]

        The touch deltas, represented as an array of [x, y] coordinates.