handlerPointerDown method

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

Implementation

@override
bool handlerPointerDown(PointerDownEvent event) {
  if (!enableMouseGesture || event.kind != PointerDeviceKind.mouse) {
    return super.handlerPointerDown(event);
  }
  if (hasGameRef) {
    onMouseScreenTapDown(
      event.pointer,
      event.localPosition.toVector2(),
      _getMouseButtonByInt(event.buttons),
    );
  }
  return super.handlerPointerDown(event);
}