handlerPointerDown method

  1. @override
bool handlerPointerDown(
  1. PointerDownEvent event
)
override

Implementation

@override
bool handlerPointerDown(PointerDownEvent event) {
  final gEvent = GestureEvent.fromPointerEvent(
    event,
    screenToWorld: gameRef.screenToWorld,
    globalToViewportPosition: gameRef.globalToViewportPosition,
  );
  if (!_fingers.contains(event.pointer)) {
    _fingers.add(
      FingerPoint(
        id: gEvent.pointer,
        position: gEvent.screenPosition,
      ),
    );
  }
  return super.handlerPointerDown(event);
}