PDA

View Full Version : Question related to GLUT window



08-07-2001, 02:17 AM
Hi all,
I have created a window using GLUT. Now, how do I get position of the cursor on the GLUT window. Though I can capture click events I am unable to get the cursor position, ie, when the mouse is simply ON the window but not clicked.

08-07-2001, 05:20 AM
One way should be by glutPassiveMotionFunc. Here is some more information http://www.fatech.com/tech/opengl/glut/index.php3?9

juglarx
08-07-2001, 08:23 AM
You can use the selection Buffer for "know" where you click with the mouse
cya