Options
All
  • Public
  • Public/Protected
  • All
V1.7
  • V1.6
  • V1.7
Menu

Class ControlTouchPadInputEventData

The input event received for Control or Magic Leap Mobile App touchpad input.

Hierarchy

Index

Constructors

constructor

Methods

getDeviceId

  • getDeviceId(): number

getEventSource

getEventType

getPrismId

  • getPrismId(): bigint

getTouch

  • getTouch(tidx?: number): [number, number, number]
  • Returns touch xy coordinates and z force.

    The coordinate ranges are:

    • x: -1.0 to 1.0 (left to right)
    • y: -1.0 to 1.0 (bottom to top)
    • z: 0.0 to 1.0 (no touch to full force)

    The center of the touchpad corresponds to xy coordinate (0, 0).

    priv

    none

    Parameters

    • Optional tidx: number

      default = 0
      touch index

    Returns [number, number, number]

    vector containing xy coordinates and force of the touch at the given touch index

getTouchCount

  • getTouchCount(): number

getTouchState

  • getTouchState(): boolean

isInputEventType

  • isInputEventType(): boolean

isMultiTouch

  • isMultiTouch(): boolean

toString

  • toString(): string

Generated using TypeDoc