# Mouse location change every tick(frequency)

**URL:** <https://forums.unrealengine.com/t/mouse-location-change-every-tick-frequency/399833>\
**Category:** C++\
**Tags:** mouse-movement, unreal-engine, mouse-position, CPP, question\
**Created:** [July 8, 2017, 5:02am UTC](https://forums.unrealengine.com/t/mouse-location-change-every-tick-frequency/399833 "2017-07-08T05:02:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhesari](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mhesari](https://forums.unrealengine.com/u/mhesari)\
**Post date:** [July 8, 2017, 5:02am UTC](https://forums.unrealengine.com/t/mouse-location-change-every-tick-frequency/399833/1 "2017-07-08T05:02:28Z")

</div>

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)

```

---

<div class="post-metadata">

**Author:** ![RedMystic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RedMystic](https://forums.unrealengine.com/u/RedMystic)\
**Post date:** [September 10, 2022, 1:21pm UTC](https://forums.unrealengine.com/t/mouse-location-change-every-tick-frequency/399833/2 "2022-09-10T13:21:28Z")

</div>

Did you resolve this? Getting same result
