# How to properly set mouse position to widget center?

**URL:** <https://forums.unrealengine.com/t/how-to-properly-set-mouse-position-to-widget-center/2260149>\
**Category:** Blueprint\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [January 5, 2025, 12:04am UTC](https://forums.unrealengine.com/t/how-to-properly-set-mouse-position-to-widget-center/2260149 "2025-01-05T00:04:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AllGamesSuck](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AllGamesSuck](https://forums.unrealengine.com/u/AllGamesSuck)\
**Post date:** [January 5, 2025, 12:04am UTC](https://forums.unrealengine.com/t/how-to-properly-set-mouse-position-to-widget-center/2260149/1 "2025-01-05T00:04:14Z")

</div>

Hi, I’m creating and adding a widget to viewport and showing the mouse cursor. The idea is to have the mouse cursor locked inside the widget. But my mouse cursor initially appears outside the widget. How do I make it show up inside it from the beginning?  
Thanks.
