View Full Version : Moving mouse pointer
02-16-2005, 12:57 PM
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,
02-16-2005, 09:36 PM
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?
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!
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.