Glut,fs,mouse look

How do you implement mouse look (like in common 3D games)? I am using glut and I only know how to receive the current position of mouse but when it reaches screen egde, it doesn’t change anymore. I need some function that returns mouse movement OR some function that moves the mouse cursor to the center of the screen.

Thanks,
Martin Sobek

Try glutWarpPointer.

You can use XWarpPointer too.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.