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