Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4736
  • Last Modified:

Mouse Wheel in C++

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
burly411
Asked:
burly411
1 Solution
 
bachra04Commented:
Please Have a Look at this link
I think it may help:
http://ecki.to/vim-icns/MouseWheel.diff



-BT
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now