Positioning the mouse

Is there an easy way to position the mouse.
Lets say that I want to position it in my program at pixel coordinate 0,0 or something.


could you be a little more specific? what window system are you using? win32? macos? x? or are you using glut?

For windows just use:

But you’ll have to look in the glut docs if your using glut. Sorry, I always tend to do things the hard way.