[prev in list] [next in list] [prev in thread] [next in thread]
List: gtk-app-devel
Subject: Re: Mouse wheel events
From: Mike Melanson <mike () multimedia ! cx>
Date: 2008-01-03 22:53:12
Message-ID: 477D6758.9050900 () multimedia ! cx
[Download RAW message or body]
Tom Trebisky wrote:
> Hello,
>
> I have a GTK 2 application I have been developing that I would like
> to have use mouse wheel events. I have a mouse event handler that
> gets left and right button events just fine, (being connected to the
> button release event). Naturally, it doesn't get a thing when I
> rotate the center wheel on the mouse. Can anyone tell me what
> to do, or direct me to appropriate documentation?
Investigate the GDK_SCROLL event. It gives you a GdkEventScroll event
structure that contains a direction field with GDK_SCROLL_UP or
GDK_SCROLL_DOWN.
Of course, this is different from the X11 event model which maps scroll
wheel events to mouse buttons 4 and 5.
--
-Mike Melanson
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic