onJoystickChangeDirectional method

  1. @override
void onJoystickChangeDirectional(
  1. JoystickDirectionalEvent event
)
override

Implementation

@override
void onJoystickChangeDirectional(JoystickDirectionalEvent event) {
  if (_settings.intensityEnabled) {
    _intensity = event.intensity;
  } else {
    _intensity = 1;
  }
  _joystickAngle = event.radAngle;
  _newDirectional = _getDirectional(event.directional);

  super.onJoystickChangeDirectional(event);
}