directionalUp method

void directionalUp(
  1. int pointer
)

Implementation

void directionalUp(int pointer) {
  if (pointer == _pointerDragging) {
    _dragging = false;
    _dragPosition = _backgroundRect?.center;
    _controller.onJoystickChangeDirectional(
      JoystickDirectionalEvent(
        directional: JoystickMoveDirectional.IDLE,
        intensity: 0.0,
        radAngle: 0.0,
      ),
    );
  }
}