Lens Scripting API

    Enumeration TouchPhaseWearable Only

    Enum that defines a current state of a touch interaction with the touchpad of the motion controller.

    controller.onTouchEvent.add(eventData => {
    switch (eventData.phase) {
    case MotionController.TouchPhase.Began:
    print("Began touch")
    break;
    case MotionController.TouchPhase.Canceled:
    print("Canceled touch")
    break;
    case MotionController.TouchPhase.Moved:
    print("Touch moved")
    break;
    case MotionController.TouchPhase.Ended:
    print("Touch Ended")
    break;
    }
    })
    Index

    Enumeration Members

    Enumeration Members

    Began: number

    Indicates that a touch event has started. This is triggered when the user initially touches the interactive area.

    Canceled: number

    Indicates that the touch event was interrupted or canceled, typically due to an error or the touch being outside the interactive area.

    Ended: number

    Indicates that the touch event has ended. This occurs when the user lifts their finger off the interactive area, completing the touch interaction.

    Moved: number

    Indicates that the touch event has moved. This is triggered when the user drags or slides their finger across the interactive area.

    MMNEPVFCICPMFPCPTTAAATR