View Full Version : Track mouse motion to spin object

04-11-2006, 10:09 AM
Hi all:
I want to create a function which tracks the mouse motion to spin the object in the glut window according the mouse movement. I think that glutMotionFunc should be the proper one to achieve the functionality. But I found that it's hard to get the differences the mouse made and it's hard to get the Z-axis movement. Does anybody know some good example of this issue please?
Thanks very much

04-11-2006, 12:23 PM
have u tried measuring the dif in mous positions?

04-11-2006, 12:47 PM
Yeah, the problem is I don't know how to measure the dif in mouse position properly.

04-11-2006, 12:49 PM
try dif = glMeasureMouseDelta().

04-11-2006, 02:57 PM
In french, Mr and Miss Ritlecul has a child, what is its name ?