Interface MouseEventReceiverInterface

Mouse and touch events

Hierarchy

  • MouseEventReceiverInterface

Methods

  • Called for mouse clicks and taps

    Returns

    Return true to consume the event, false to pass it on

    Parameters

    Returns boolean

  • Called for double clicks and double taps

    Returns

    Return true to consume the event, false to pass it on

    Parameters

    Returns boolean

  • Called when the user cancels dragging by pressing the escape key

    Parameters

    • Optional instanceId: number

      The index of the instance if the event occurred on an InstancedMesh.

    Returns void

  • Called for click-and-hold and touch-and-hold

    Returns

    Return true to consume the event, false to pass it on

    Parameters

    • pos: MouseEventCoordinatesInterface

      Mouse position

    • Optional instanceId: number

      The index of the instance if the event occurred on an InstancedMesh.d

    Returns boolean

  • Called when the mouse wheel is turned

    Returns

    Parameters

    • pos: MouseEventCoordinatesInterface

      Mouse position

    • delta: number

      Mouse wheel delta

    • Optional instanceId: number

      The index of the instance if the event occurred on an InstancedMesh.

    Returns boolean

Generated using TypeDoc