onPointerDown method

  1. @override
Future<void> onPointerDown(
  1. Vector2 localPosition,
  2. bool isMiddle
)
override

Implementation

@override
Future<void> onPointerDown(Vector2 localPosition, bool isMiddle) async {
  if (!isMiddle) {
    final action = _actions[InputType.LMB_DOWN];
    switch (action) {
      case InputAction.PICK:
        pickDelegate?.pick(localPosition);
      default:
      // noop
    }
  }
}