API reference
Preparing search index…

Touch.getPosition

  • Return the touch's pixel position relative to the client area of relativeTo, or to the desktop if omitted.

    Parameters

    finger
    number
    relativeToOptional

    Returns

    Use the position field in touch events.

    Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0