# How do I capture mouse movement while showing the cursor and not needing to press down a mouse button

**URL:** <https://forums.unrealengine.com/t/how-do-i-capture-mouse-movement-while-showing-the-cursor-and-not-needing-to-press-down-a-mouse-button/1768019>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [March 23, 2024, 9:07am UTC](https://forums.unrealengine.com/t/how-do-i-capture-mouse-movement-while-showing-the-cursor-and-not-needing-to-press-down-a-mouse-button/1768019 "2024-03-23T09:07:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SilentGarud](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/silentgarud/32/1216315_2.png) [@SilentGarud](https://forums.unrealengine.com/u/SilentGarud)\
**Post date:** [March 23, 2024, 9:07am UTC](https://forums.unrealengine.com/t/how-do-i-capture-mouse-movement-while-showing-the-cursor-and-not-needing-to-press-down-a-mouse-button/1768019/1 "2024-03-23T09:07:43Z")

</div>

I am working on an RTS and I need to be able to show the cursor permanently but showing the cursor makes it so that I can’t get the cursor position using enhanced inputs mouse movement. This problem can be easily replicated in a blank project by the following steps:

1. In the blank project, create a gaming mode and player controller and set them up as defaults.
2. Create an input action and mapping context for the `Mouse XY 2D-Axis`.
3. Set up the player controller blueprint like the following.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/9/e/79ed6d7a17c1740d03dd73821e8109540b7e1a3b.png)

Removing the connector before setting the mouse cursor and moving the mouse, displays “Foo”. But if show mouse cursor is turned on, no matter what game setting is applies, I can’t get “Foo” to be printed without holding down a mouse button.

I have seen [some posts](https://forums.unrealengine.com/t/how-to-show-mouse-cursor-without-losing-mouse-capture/578191/3) which talks about how to workaround things using CommonUI but since I haven’t started working on the UI, I was looking for an alternative way.

This is probably a question that has been asked a lot, but I haven’t really seen a good answer, or the answers are for pre 5.0 like [here](https://forums.unrealengine.com/t/mousex-bindaxis-returning-0-unless-mouse-button-depressed/325857). So, asking the question again.

---

<div class="post-metadata">

**Author:** ![klen\_dhatu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@klen\_dhatu](https://forums.unrealengine.com/u/klen_dhatu)\
**Post date:** [January 14, 2026, 10:03pm UTC](https://forums.unrealengine.com/t/how-do-i-capture-mouse-movement-while-showing-the-cursor-and-not-needing-to-press-down-a-mouse-button/1768019/2 "2026-01-14T22:03:39Z")

</div>

I also stumbled upon this. I mean technically you can still detect movement using an Event tick

but that is not a nice way.
