jetlag2d
    Preparing search index...

    Class GestureHandlers

    GestureHandlers is the means by which a programmer can attach to an Entity code to run in response to each of the gestures that JetLag supports.

    Index
    onMouseHover?: (actor: Actor, worldCoords: { x: number; y: number }) => boolean

    code to run when the mouse hovers over the actor

    onMouseUnHover?: (actor: Actor) => boolean

    code to run when the mouse stops hovering over the actor

    onPanMove?: (actor: Actor, worldCoords: { x: number; y: number }) => boolean

    code to run on a pan move event

    onPanStart?: (actor: Actor, worldCoords: { x: number; y: number }) => boolean

    code to run on a pan start event

    onPanStop?: (actor: Actor, worldCoords: { x: number; y: number }) => boolean

    code to run on a pan stop event

    onSwipe?: (
        actor: Actor,
        point1: { x: number; y: number },
        point2: { x: number; y: number },
        time: number,
    ) => boolean

    code to run on a swipe event

    onTap?: (actor: Actor, worldCoords: { x: number; y: number }) => boolean

    code to run when this actor is tapped

    onTouchDown?: (actor: Actor, worldCoords: { x: number; y: number }) => boolean

    code to run on a down press event

    onTouchUp?: (actor: Actor, worldCoords: { x: number; y: number }) => boolean

    code to run on a release event