# Window doesn't capture/lock mouse to window's viewport?

**URL:** <https://forums.unrealengine.com/t/window-doesnt-capture-lock-mouse-to-windows-viewport/281998>\
**Category:** Modding\
**Tags:** unreal-engine, question\
**Created:** [April 29, 2014, 12:29pm UTC](https://forums.unrealengine.com/t/window-doesnt-capture-lock-mouse-to-windows-viewport/281998 "2014-04-29T12:29:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![undercover](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@undercover](https://forums.unrealengine.com/u/undercover)\
**Post date:** [April 29, 2014, 12:29pm UTC](https://forums.unrealengine.com/t/window-doesnt-capture-lock-mouse-to-windows-viewport/281998/1 "2014-04-29T12:29:01Z")

</div>

Hi!

When I start the game in window mode with the cursor visible the window doesn’t lock the mouse to the window’s viewport. If I toggle to fullscreen and back to window mode again, the mouse is now locked to the window. I don’t know if this is the desired behavior but I would guess it’s not.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [October 7, 2014, 5:29pm UTC](https://forums.unrealengine.com/t/window-doesnt-capture-lock-mouse-to-windows-viewport/281998/2 "2014-10-07T17:29:17Z")

</div>

This has been marked as closed as a duplicate!

Thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_69b87708](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_69b87708](https://forums.unrealengine.com/u/anonymous_user_69b87708)\
**Post date:** [July 20, 2016, 2:31pm UTC](https://forums.unrealengine.com/t/window-doesnt-capture-lock-mouse-to-windows-viewport/281998/3 "2016-07-20T14:31:16Z")

</div>

It would be nice to have a link to the duplicate question 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [July 20, 2016, 3:03pm UTC](https://forums.unrealengine.com/t/window-doesnt-capture-lock-mouse-to-windows-viewport/281998/4 "2016-07-20T15:03:23Z")

</div>

Since this post is pretty out-dated and was never closed out officially, if you are still experiencing a similar issue in a more recent version of the engine, please create a new answerhub post and provide me with a link in your response.

This way it can be tracked more effectively and I can assist you with troubleshooting. Let me know if you have further questions or need additional assistance.

Cheers,
