> In the glut3.7.6 mouse callback I can detect if it's actually been
> pushed down (GLUT_MIDDLE_BUTTON), but I can't pick up on whether
> it's being scrolled.
>
> Any ideas?
>
> tks!
hm,
i'm using glut 3.7.? (don't know exactly which version, but was
included to SuSE 7.3 Linux from fall/2001), and the imps/2 mouse
protocol.
and within the "glutMouseFunc(mouse)" like
void mouse(int button, int state, int x, int y)
the variable "button" is set to
0 (= GLUT_LEFT_BUTTON) if the left button is pressed / released
1 (= GLUT_MIDDLE_BUTTON) if the left button is pressed / released
2 (= GLUT_RIGHT_BUTTON) if the left button is pressed / released
(as you know ;-) and
3 if the wheel turns up
4 if the wheel turn down
regards,
Bjørn
"Bjørn Nachtwey" <sloth...@gmx.net> wrote in message
news:aj8qh7$gt$1...@rzcomm2.rz.tu-bs.de...