Class PointerInfo
Hierarchy (View Summary)
- PointerInfoBase
- PointerInfo
Index
Constructors
constructor
-
new PointerInfo(
type: number,
event: IMouseEvent,
pickInfo: Nullable<PickingInfo>,
inputManager?: Nullable<InputManager>,
): PointerInfoInstantiates a PointerInfo to store pointer related info to the onPointerObservable event.
Parameters
- type: number
Defines the type of event (PointerEventTypes)
- event: IMouseEvent
Defines the related dom event
- pickInfo: Nullable<PickingInfo>
Defines the picking info associated to the info (if any)
- inputManager: Nullable<InputManager> = null
Defines the InputManager to use if there is no pickInfo
Returns PointerInfo
- type: number
Properties
event
Defines the related dom event
type
type: number
Defines the type of event (PointerEventTypes)
Accessors
pick Info
-
Defines the picking info associated with this PointerInfo object (if applicable)
Returns Nullable<PickingInfo>
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.