[vtkusers] Re: VTK: Mouse Wheel Event

Charl P. Botha c.p.botha at ewi.tudelft.nl
Wed Aug 13 12:19:03 EDT 2003


On Wed, 2003-08-13 at 14:33, Mathieu Malaterre wrote:
> Charl Wrote:
> > 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

If that's the case (i.e. ALL of these toolkits assume that Button 4 and
5 events are triggered by the scroll-wheel) we could *maybe* do the
same, although one has to wonder what will happen on that odd mouse
where Buttons 4 and 5 are something totally different (e.g. thumb
buttons).  If you find anymore information about this, I would love to
hear.

-- 
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/



More information about the vtkusers mailing list