trackPointer method
dynamic
trackPointer(
- dynamic event
Implementation
trackPointer(event) {
var position = pointerPositions[event.pointerId];
if (position == null) {
position = new Vector2();
pointerPositions[event.pointerId] = position;
}
position.set(event.pageX, event.pageY);
}