handlerPointerDown method

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

Implementation

@override
bool handlerPointerDown(PointerDownEvent event) {
  _pointer = event.pointer;
  _startPoint = event.position.toVector2();
  _startCameraPosition = gameRef.camera.position;
  _actionMoveToPosition = _acceptFromMouse(
    event,
    mouseButtonUsedToMoveToPosition,
  );
  return super.handlerPointerDown(event);
}