Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 1.08 KB

three-story-controls.pointeradaptorevent.md

File metadata and controls

33 lines (21 loc) · 1.08 KB

Home > three-story-controls > PointerAdaptorEvent

PointerAdaptorEvent interface

Event: Fired when when PointerEvents are triggered

Signature:

export interface PointerAdaptorEvent extends ContinuousEvent 

Extends: ContinuousEvent

Example

adaptor.on('trigger', (e) => {
  console.log('x/y coordinates', e.values.x, e.values.y)
})

Properties

Property Type Description
deltas Coordinates Pointer coordinate change since previous update
pointerCount number Number of pointers registered
values Coordinates Dampened x and y pointer coordinates