PDA

View Full Version : Setting the mouse position



06-04-2003, 02:54 AM
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.

jebus
06-04-2003, 03:01 AM
Win32: SetCursorPos(int x, int y)
GLUT: glutWarpPointer(int x, int y);
X: XWarpPointer(Display, blah, blah ... zzzzzzzzz......)

jebus