PDA

View Full Version : glut: mouse setcursor() ?



SebastianB
06-30-2002, 11:23 PM
hi!

i am using my mouse to rotate my scene-camera. it works fine, i have registered a function with glutMotionFunc().

but unfortunately, when my cursor runs out of the window, my camera rotation comes to an end.
is there a possibility, in a "win32 CONSOLE appilcation" to set the mouse cursor back to the middle of the window?

if anybody could give me a hint or two, i could reset the cursor after every movement and everything would be perfect ...

i would be very thankful for help :-)


http://www.opengl.org/discussion_boards/ubb/smile.gif)
sebastian

Rob Fletcher
07-01-2002, 01:05 AM
Hi,

You probably need ...

glutWarpPointer(int x, int y)

enjoy!

Rob.

SebastianB
07-01-2002, 05:23 AM
oh man, THANK YOU very much.
i havent found a good list of all glut-features and -functions yet ...

where from do you have this wisdom? http://www.opengl.org/discussion_boards/ubb/wink.gif


http://www.opengl.org/discussion_boards/ubb/smile.gif)
seb

Gavin
07-01-2002, 05:47 AM
Have a look at the documentation in the SDK.

coredump
07-01-2002, 08:15 AM
and look at glut.h