# Why GetMousePosition return false and NULL for XY?

**URL:** <https://forums.unrealengine.com/t/why-getmouseposition-return-false-and-null-for-xy/299760>\
**Category:** Blueprint\
**Tags:** unreal-engine, mouse-position, Blueprint, question\
**Created:** [November 24, 2014, 7:05pm UTC](https://forums.unrealengine.com/t/why-getmouseposition-return-false-and-null-for-xy/299760 "2014-11-24T19:05:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_daa06def](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_daa06def](https://forums.unrealengine.com/u/anonymous_user_daa06def)\
**Post date:** [November 24, 2014, 7:05pm UTC](https://forums.unrealengine.com/t/why-getmouseposition-return-false-and-null-for-xy/299760/1 "2014-11-24T19:05:19Z")

</div>

Why GetMousePosition return false and NULL for XY?

 ![22051-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/f/d/9fd86db198d2729b92a6fb6818a130be6242ad2b.png)

 ![22052-2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/e/a/6ea62578c4f0dbec3406662d6da9d20b97b549fa.jpeg)

---

<div class="post-metadata">

**Author:** ![Troublesum](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Troublesum](https://forums.unrealengine.com/u/Troublesum)\
**Post date:** [August 5, 2015, 10:31pm UTC](https://forums.unrealengine.com/t/why-getmouseposition-return-false-and-null-for-xy/299760/2 "2015-08-05T22:31:36Z")

</div>

Did you ever solve this issue? I am having the same issue calling GetMousePosition() in C++ very strange, if i call it in a custom UUSerWidget it doesn’t work but works if call in my PlayerController.

---

<div class="post-metadata">

**Author:** ![echo\_1234](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@echo\_1234](https://forums.unrealengine.com/u/echo_1234)\
**Post date:** [March 20, 2022, 1:11pm UTC](https://forums.unrealengine.com/t/why-getmouseposition-return-false-and-null-for-xy/299760/3 "2022-03-20T13:11:57Z")

</div>

I also have the same problem, did you solve it?
