I am writing a simple game and I will control the mouse camera (using GlutPassiveMotionFunc).
I'm going to feed and scour based on the difference in mice between the callbacks, however I think it would be a good idea to “make” the mouse return to the center of the screen every time they tried to move it. Thus, their cursor will not be on the edge of the screen, and they cannot move further in this direction.
What Glut / OpenGL command can I use to reposition my mouse?
source share