BGE- Prevent a custom mouse pointer from snapping to the center of the screen when mouse look is used I am trying to create a rotation system around my character so that when i hold down right mouse button and move the mouse, the camera rotates round the character and when you let go of it, the view stays where it is. Once you let go, you can use the custom mouse pointer to click on items in the scene.

I have the problem that when you rotate the camera, the pointer snaps to the center of the screen (when i want it to stay in place) and jolts the camera. I am aiming for a way to have a similar system to the game Astroneer for reference. Any idea of how i could achieve this?
You need two modes/states


view change mode where you turn the camera with mouse movement. Typically the mouse cursor is not shown in this mode
click mode where you can see and move the mouse cursor. The camera is not turned by the mouse.


You need to define when to switch from one mode/state to the other