Preparing search index...

    Class TouchInfoExperimental

    A single touch point on the controller touchpad.

    Lens Scripting Version 373

    //@input Asset.GameControllerModule gameControllerModule
    var provider = script.gameControllerModule.createController();
    provider.onTouchpadEvent.add(function(event) {
    event.touches.forEach(function(touch) {
    print("touch " + touch.id + " at (" + touch.normalizedPosition.x + ", " + touch.normalizedPosition.y + ")");
    });
    });

    Hierarchy (View Summary)

    Index

    Properties

    id: number

    Unique identifier for this touch, consistent across its lifecycle.

    Lens Scripting Version 373

    normalizedPosition: vec2

    Normalized 2D position of the touch on the touchpad, from (0,0) to (1,1).

    Lens Scripting Version 373

    Current state of this touch (began, moved, ended, or cancelled).

    Lens Scripting Version 373

    Methods

    • Experimental

      Returns the fully-qualified JavaScript type name for this class (for example, "Component.Camera"). This is a static accessor (no instance required) and returns the same value as the instance getTypeName().

      Returns string

      Lens Scripting Version 373

    • Experimental

      Returns the name of this object's type.

      Returns string

    • Experimental

      Returns true if the object matches or derives from the passed in type.

      Parameters

      • type: string

      Returns boolean

    • Experimental

      Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

      Parameters

      Returns boolean