PointerInfo

This type contains all the data related to a pointer event in Babylon.js. The event member is an instance of PointerEvent for all types except PointerWheel and is of type MouseWheelEvent when type equals PointerWheel. The different event types can be found in the PointerEventTypes class.

Hierarchy

Index

Constructors

Properties

Constructors

constructor

Find examples in Playground
  • Instantiates a PointerInfo to store pointer related info to the onPointerObservable event.

    Parameters

    • type: number

      Defines the type of event (BABYLON.PointerEventTypes)

    • event: PointerEvent | MouseWheelEvent

      Defines the related dom event

    • pickInfo: Nullable<PickingInfo>

      Defines the picking info associated to the info (if any)\

    Returns PointerInfo

Properties

event

Find examples in Playground
event: PointerEvent | MouseWheelEvent

Defines the related dom event

pickInfo

Find examples in Playground

Defines the picking info associated to the info (if any)\

type

Find examples in Playground
type: number

Defines the type of event (BABYLON.PointerEventTypes)

Generated using TypeDoc