handlerPointerCancel method

  1. @override
bool handlerPointerCancel(
  1. PointerCancelEvent event
)
override

Implementation

@override
bool handlerPointerCancel(PointerCancelEvent event) {
  for (JoystickAction action in actions) {
    action.actionUp(event.pointer);
  }
  directional?.directionalUp(event.pointer);
  return super.handlerPointerCancel(event);
}