Is there a way to either:

  1. Change the actual position of the mouse.
  2. Get mouse movement, regardless of position.

This is because I want to make the camera freely rotate with mouse movement, however, when the mouse reaches the edge of the screen or window border I can’t rotate the camera anymore.

I am using GLFW, and the function glfwGetMousePos to find the change in the mouse position, and it doesn’t register mouse positions beyond the window border.

So…if I could reset the mouse position to the center everytime then I can rotate the camera indefinitely because it shouldn’t go past the window border, generally.

or any other methods. Please help, thanx

How about glfwSetMousePos?