setupMovementByJoystick method

void setupMovementByJoystick({
  1. MovementByJoystickType moveType = MovementByJoystickType.direction,
  2. bool intensityEnabled = false,
  3. bool diagonalEnabled = true,
  4. bool enabled = true,
})

Implementation

void setupMovementByJoystick({
  MovementByJoystickType moveType = MovementByJoystickType.direction,
  bool intensityEnabled = false,
  bool diagonalEnabled = true,
  bool enabled = true,
}) {
  _settings = MovementByJoystickProps(
    moveType: moveType,
    intensityEnabled: intensityEnabled,
    diagonalEnabled: diagonalEnabled,
    enabled: enabled,
  );
}