PDA

View Full Version : CURSOR problem



Ther
10-23-2006, 02:46 AM
I'm using glut, linux. I could hide the cursor ( glutSetCursor ( GLUT_CURSOR_NONE ); ), but i couldn't keep it in the middle because:

I want the watch when user's moving the cursor, but the edges of the screen causes problems. Is there any solution for set the cursor always to the middle of the screen? I've been through many glut sites but found only cursor's shape's settings. Thanks for the future.

10-23-2006, 03:09 AM
there is this

http://pyopengl.sourceforge.net/documentation/manual/glutWarpPointer.3GLUT.html

but be sure to have an alternate window close route! :)

Ther
10-23-2006, 08:58 AM
your my faithfully, not that who couldnt name this glutSetCursorPosition or something like this. Thx :D