From gtk-app-devel Thu Jan 03 22:53:12 2008 From: Mike Melanson Date: Thu, 03 Jan 2008 22:53:12 +0000 To: gtk-app-devel Subject: Re: Mouse wheel events Message-Id: <477D6758.9050900 () multimedia ! cx> X-MARC-Message: https://marc.info/?l=gtk-app-devel&m=119940085903526 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