PDA

View Full Version : Moving mouse pointer



Luke H.
02-16-2005, 01:57 PM
Hello there,

I'm using GLUT to manage my windows. I want my program to move the (mouse) pointer. What's the best way of doing this?

Thanks in advance,
Luke

MMMovania
02-16-2005, 10:36 PM
Hello there,
I don't understand what do you mean by moving the mouse pointer. Do you want key board to handle mouse movement or what??? Clarification required?

dvm
02-17-2005, 03:34 AM
had some network problems and lost my previous answer, so this one is gonna be brief. Look at glutSetCursor. If you want to draw your own cursor, you need OS specific functions to disable it and then get a quad that follows the mouse coordinates in each frame. These can be get by glutPassiveMotionFunc and glutMotionFunc. Good luck!