Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

GLUT - can you use the mouse scroll-wheel?

273 views
Skip to first unread message

Bjørn Nachtwey

unread,
Aug 12, 2002, 1:16:12 PM8/12/02
to
Karren S. wrote:

> 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

Karren S.

unread,
Aug 12, 2002, 3:44:16 PM8/12/02
to
Thank you very much Bjørn for the help.
For me, under windows XP i just noticed that it's not even going into my
'mouse()' function when it's rolled (but it does go in when the middle is
clicked)
I think i'm screwed :)


"Bjørn Nachtwey" <sloth...@gmx.net> wrote in message
news:aj8qh7$gt$1...@rzcomm2.rz.tu-bs.de...

0 new messages