🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

mouse input

Started by
1 comment, last by Fuzz 24 years, 1 month ago
I''m using GLUT in my projects and want to know where the mouse is in the window. I know there is a mouse callback and a motion callback function, but these are only called when a button is pressed. How do I just get the x,y of the mouse even when no button is pressed (it doesnt have to be using glut.. any method will do)
Advertisement
I believe you''re looking for the glutPassiveMotionFunc() call.
Thanks heaps

This topic is closed to new replies.

Advertisement