q5play
    Preparing search index...

    Class _Pointer

    Hierarchy (View Summary)

    Index
    canvasPos: { x: number; y: number }

    The pointer's absolute position on the canvas.

    duration: number

    The amount of frames the pointer has been active for.

    holdThreshold: number

    The amount of frames an input must be pressed to be considered held.

    12
    
    id: number

    The pointer's unique identifier.

    press: number

    The amount of frames the user has been clicking, touching, or drawing on the screen with the pointer.

    pressure: number

    The pointer's pressure level, from 0 to 1.

    On devices that do not support pressure sensitivity, the value is 0.5 when the pointer is pressing.

    x: number

    The pointer's x position in the physics world.

    y: number

    The pointer's y position in the physics world.

    • Same as the released function, which is preferred.

      Parameters

      • Optionalinp: string

      Returns boolean

      true on the first frame that the user released the input