Setting the mouse position

I’m having fun with OpenGl but one problem (not the only one…) eludes
me. When my graphics window opens I wish the mouse cursor to be at a
specfic postion. I would like a proceedure SetMousePositionTo(int xP,int
yP). Do you have any ideas?

It is for a flight simulator I have developed where the passive movement
of the mouse determines the airleon and elevator angle.

Win32: SetCursorPos(int x, int y)
GLUT: glutWarpPointer(int x, int y);
X: XWarpPointer(Display, blah, blah … zzzzzzzzz…)

jebus