PDA

View Full Version : non platform specific mouse wheel support?



04-24-2002, 11:23 AM
I wish glut supported mouse wheel detection, is there another library that does over Win98, OSX, and Linux?

kabir
04-24-2002, 03:09 PM
I haven't spent a lot of time on this, but the mouse wheel is generally just another button. Well, actually, it's just another 3 buttons. There's the one that gets activated when you press the mouswheel straight down, and each of the directions of rotation are another button.

The easy test: Fire up Xemacs and rotate your mousewheel... it will mention that button4 and button5 (in my case, your mouse may vary) aren't bound to anything. I'm betting that windows treats this the same way. Dunno about macs, but this stuff doesn't tend to vary all that much.

Good luck!