Re: Mouse wheel events
- From: Mike Melanson <mike multimedia cx>
- To: tom mmto org
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Mouse wheel events
- Date: Thu, 03 Jan 2008 14:53:12 -0800
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]