Avoid mouse cursor moving in Game Mode

My game show some widgets in UI Mode Only, they are dialogs. When the widget is closed the game goes to Game Mode Only.

When in game mode the user moves the mouse tu turn the player movement, but the mouse cursor is not visible. When a widget is shown the cursor is shown in a random position.

Is possible that the mouse cursor doesnt move while moving the mouse in game mode?


I got stuck with the same problem. Did you find the solution ?

Maybe you should save the last mouse position when the widget is closed, and then set the mouse position to that when a widget is shown again.