PDA

View Full Version : another question about mouse callback



10-02-2003, 11:25 AM
Hi there,

It seems that the mouse callback function
of Glut is called whenever occurs a mouse
event (click or else). Is there a way
to call this function whenever the mouse is
moving (I'd like to keep track of the cursor
motion..)
Any help would be greatly appreciated !!

Steinbeck

Bob
10-02-2003, 11:37 AM
glutMotionFunc to track movements when a mouse button is pressed, and glutPassiveFunc for movements when no button is pressed.

10-02-2003, 11:46 AM
Thanks Bob ! This should work very fine !