Mouse control that doesn't affect camera?

I’m trying to make a puzzle/investigation game ala Hotel Dusk and The Last Window. I’m having trouble setting up a specific control set. I basically want the mouse to have free movement around the screen without it moving the camera, like a cursor basically. How could I achieve this? I’m also planning on using Ink if that helps answers.

Set Show Muse Cursor = true in your Player Controller

1 Like

Hello @Wulf_Man , Welcome to forums!
In this example, I created a custom event that handles generating the widget and adding it to the viewport.

After that, from the player controller, you need to enable the mouse cursor using the Set Show Mouse Cursor node and set it to true. Then, configure the input mode with Set Input Mode UI Only so the player can only interact with the interface while the widget is active.

If you want, you can add a Set Game Paused node to pause the game while the player makes a decision or solves the puzzle, although that depends on the kind of experience you’re going for.

Then, when you disable the widget, in my case by pressing a button inside the widget, you need to turn off the cursor again (Set Show Mouse Cursor set to false), change the input mode to Game Only, and use Remove from Parent to remove the widget from the viewport.
This way, the player regains control of the character and the game continues normally.


If you have any questions while working on your game, don’t hesitate to ask in the forums!
Hope it helps!

1 Like