I am using OpenGL and I try to trap my cursor inside my game window (using both SetCursorPos
and
ClipCursor)
But, these conflict with my camera rotation code as my camera is rotated with my mouse. If there is a way to do it, please let me know. If possible, I would be willing to make it so that when the cursor reaches an edge of the screen, it jumps to the opposite edge (though I fear that would also conflict with my camera code).