mouse user control

I am creating a first person shooter. what i am working on now is the user controls. the user controls the camera. i have implemented the needed functions move forward,back,left,right which are controled by keyboard.and i have a yaw and pitch so that the user can look around. what i want to do is have the mouse get locked into the openGl window and when u use the mouse i want the camera to control the look so that it will look around based on mouse movement much like a first person shooter. i am using openGl in windows and using glut. any help is appreciated.


is there anyway that i can do this using glut or how can i do this without getting rid of glut and with as adding as little code as possible. Incus

Haven’t the foggiest - next question?