trackPointer method

dynamic trackPointer(
  1. 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);
}