Archived

This topic is now archived and is closed to further replies.

cwchan

What is the mouse wheel parameters (for glutMouseFunc) ?

Recommended Posts

Hi, beginner here. I am developing an OpenGL simple program under VC++6.0. Hereby just wondering what is the correct code of mouse wheel for glutMouseFunc() (For example, GLUT_LEFT_BUTTON for left mouse button). I wish to define it so that I can use it to zoom in/out the object inside window. Thanks and hope to hear from you.

Share this post


Link to post
Share on other sites
The documentation is here. I don''t think you can get to it from glut. At best it is going to be translated to keystrokes. You might be able to get to it through DirectInput though.

Share this post


Link to post
Share on other sites