[vtkusers] Re: VTK: Mouse Wheel Event

Mathieu Malaterre Mathieu.Malaterre at creatis.insa-lyon.fr
Wed Aug 13 08:33:58 EDT 2003


Charl,

> 2. I am concerned about your translation of button4 and button5 XEvents
> to VTK MouseWheel events.  This is only true if the user has
> "ZAxisMapping 4 5" in her config file.  Is it not possible for you to
> trap the ZAxis events themselves?  The way you have done it works, but
> is not entirely correct.

You are perfectly right.
I have been browsing different GUI libs: wxWindows/ gtk+/ fltk and they 
all make the assertion that config file has:
Option ZAxisMapping 4 5

Refs:
http://cvs.wxwindows.org/viewcvs.cgi/wxWindows/src/gtk/window.cpp?rev=1.434
http://cvs.gnome.org/lxr/source/gtk+/gdk/x11/gdkwindow-x11.c#76
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/fltk/fltk/src/Fl_x.cxx.diff?r1=1.107&r2=1.108
http://koala.ilog.fr/colas/mouse-wheel-scroll/
http://www.xfree86.org/current/mouse5.html#23

This only thing I can do, is to use 'XGetPointerMapping':
http://www.xfree86.org/current/XGetPointerMapping.3.html

For example some user could define:
Option ZAxisMapping 6 7
ref:
http://www.mandrakeuser.org/docs/xwin/xmouse2.html


Comments/suggestions welcome

Mathieu




More information about the vtkusers mailing list