Having mouse events only occur on mouse press

Hello, I am trying to create some basic MMO style mouse behaviors in the third person template. When you start the project the mouse is consumed by the game and the events start listening for the Mouse X and Mouse Y and the pitch and yaw are added to the controller. This behavior is fine however I only want this to occur if the left mouse button is pressed. If the left mouse button is not pressed I need the mouse to be visible and free moving so the user can click on items in the game. How can I get this to happen? Or can someone point me in the right direction? Thanks!

In the controller there is a variable called “Show Mouse Cursor”.
You can set it however you like at any time to change the behavior.

The second way is if you use widgets you can also use (with the reference of the widget) “Set Input Mode UIOnly” or “Set Input Mode Game and UI”.

Both should work just the same.

I hope this helps.

Cheers

1 Like