Solved

Mouse Wheel in C++

Posted on 2004-08-23
1
4,667 Views
Last Modified: 2013-12-26
I am attempting to include mouse wheel support in a opengl/glut implementation.

In linux under X-windows the scroll wheel comes up as a separate mouse button on the glut mouse event.

In Mac OSX v10.3.5  the mouse wheel does not appear under the glut mouse function. I have read that glut does not actually support the mouse wheel. How would I get mouse wheel support in a c++ opengl / glut app in Mac OSX?

I'm looking for a function that returns an integer for scroll up and an integer for scroll down.

Thanks!
0
Comment
Question by:burly411
1 Comment
 
LVL 2

Accepted Solution

by:
bachra04 earned 140 total points
ID: 11896221
Please Have a Look at this link
I think it may help:
http://ecki.to/vim-icns/MouseWheel.diff



-BT
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now