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

    Class DualGestureSourceAlpha

    Dual gesture input source.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _element: null | HTMLElement = null
    deltas: { doubleTap: InputDelta; leftInput: InputDelta; rightInput: InputDelta } = ...

    Type declaration

    Accessors

    • get layout(): | "joystick-joystick"
      | "joystick-touch"
      | "touch-joystick"
      | "touch-touch"
      Alpha

      Returns "joystick-joystick" | "joystick-touch" | "touch-joystick" | "touch-touch"

    • set layout(
          value:
              | "joystick-joystick"
              | "joystick-touch"
              | "touch-joystick"
              | "touch-touch",
      ): void
      Alpha

      Parameters

      • value: "joystick-joystick" | "joystick-touch" | "touch-joystick" | "touch-touch"

      Returns void

    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 { doubleTap: number[]; leftInput: number[]; rightInput: number[] }

      • doubleTap: number[]

        The double tap delta.

      • leftInput: number[]

        The left input deltas.

      • rightInput: number[]

        The right input deltas.