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

Class GestureInputEventData

GestureInputEventData - Gesture input event

Hierarchy

Index

Constructors

constructor

Methods

getDeviceId

  • getDeviceId(): number

getEventSource

getEventType

getGesture

getGestureAngle

  • getGestureAngle(): number

getGestureDirection

getGestureDistance

  • getGestureDistance(): number

getGestureFingerGap

  • getGestureFingerGap(): number

getGestureForceValue

  • getGestureForceValue(): number

getGestureKeyPoseConfidence

  • getGestureKeyPoseConfidence(gesture: GestureType): number
  • Get the confidence of a given hand pose

    Parameters

    • gesture: GestureType

      the hand pose for which to retreive the confidence

    Returns number

    a confidence value between 0 and 1 (higher means greater confidence)

getGestureLocation

  • getGestureLocation(): [number, number]

getGestureRadius

  • getGestureRadius(): number

getGestureSpeed

  • getGestureSpeed(): number

getHandConfidence

  • getHandConfidence(): number

getHandGestureConfidence

  • getHandGestureConfidence(): number

getHandGestureIndex

  • getHandGestureIndex(): number

getHandGestureKeyPointCount

  • getHandGestureKeyPointCount(): number

getHandGestureKeyPoseConfidence

  • getHandGestureKeyPoseConfidence(gesture: GestureType): number
  • Get the confidence of a given hand pose

    deprecated

    use getGestureKeyPoseConfidence instead.

    priv

    none

    Parameters

    • gesture: GestureType

      the hand pose for which to retreive the confidence

    Returns number

    a confidence value between 0 and 1 (higher means greater confidence)

getHandGestureKeypoint

getHandGestureLocation

  • getHandGestureLocation(): [number, number, number]

getPrismId

  • getPrismId(): bigint

getTouch

  • getTouch(tidx?: number): [number, number, number]
  • Get 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

isHandGestureKeypointRecognized

isInputEventType

  • isInputEventType(): boolean

isMultiTouch

  • isMultiTouch(): boolean

toString

  • toString(): string

Generated using TypeDoc