actionUp method

void actionUp(
  1. int pointer
)

Implementation

void actionUp(int pointer) {
  if (pointer == _pointer) {
    _dragging = false;

    _rectBackgroundDirection?.let((rectBackgroundDirection) {
      _dragPosition = rectBackgroundDirection.center;
    });

    _controller.onJoystickAction(
      JoystickActionEvent(
        id: actionId,
        event: ActionEvent.UP,
      ),
    );
    unPressed();
  }
}