How to Rotate an Object using the mouse C++

Any suggestions?




void APlayerController_Amber::UpdateRotation(float DeltaTime)
{
	AdarkstormCharacter* Pawn = Instigator ? Cast<AdarkstormCharacter>(Instigator->Controller) : NULL;
	if (Pawn)
	{
		if (Pawn->bDroneisActive)
		{
			FVector ViewLocation;
			FRotator ViewRotation;
			GetPlayerViewPoint(ViewLocation, ViewRotation);;
			Pawn->DroneMesh->SetWorldRotation(ViewRotation);
		}
		else
		{
			Super::UpdateRotation(DeltaTime);
		}
	}
	else
	{
		Super::UpdateRotation(DeltaTime);
	}
	
}