Hi Epic/community,
I used the code below for find mouse location. get location is successfully.
Problem, i get different position every tick without moving the mouse. and location change frequency between 2 location. Log of the location is below too. how i can fix this?
FVector2D MouseLocation;
PlayerController->GetMousePosition(MouseLocation.X, MouseLocation.Y);
UE_LOG(LogTemp, Warning, TEXT("Mouse(%f, %f)"), MouseLocation.X, MouseLocation.Y);
Is use this code on actor tick and got this result:
LogTemp:Warning: Mouse(-82.571457, 0.000000)
LogTemp:Warning: Mouse(-84.164673, 0.000000)
LogTemp:Warning: Mouse(-82.009789, 0.000000)
LogTemp:Warning: Mouse(-84.398071, 0.000000)
LogTemp:Warning: Mouse(-82.841850, 0.000000)