Re: [wxVTK] Wheel mouse code update
Brought to you by:
malat
From: Philip S. <oh...@vt...> - 2007-10-18 23:39:37
|
Eer. I forgot to take out the std::cout statement... Please delete it. On Thursday 18 October 2007 1:41 pm, Philip Schuchardt wrote: > Ahh, Yea. It's Good that you pointed that out. > > It's a little dangerous because it takes the -- last -- wxMouse events > modifiers. No, you can't check wxMouse event in OnMouseWheelIdle because > it uses the net result of many wxMouse events. Also, OnMouseWheelIdle > takes an wxIdleEvent and not a wxMouseEvent. From my testing, it works > well. I was not physical quick enough to change the modifier between wheel > events. Originally, I was going to handle that case. After testing it, I > didn't feel that it was nessary. > > I've attached an updated version that supports accumulation of modifiers. > > Thanks, > Philip Schuchardt > > On Thursday 18 October 2007 11:08 am, Mathieu Malaterre wrote: > > Hi Philip, > > > > I am looking at your code, and I am not sure why you are doing this: > > ... > > + //Modifiers > > + shiftDown = event.ShiftDown(); > > + ctrlDown = event.ControlDown(); > > ... > > > > Isn't it a bit dangerous to store modifiers. Are you sure that it > > will work even after a OnLeave/OnEnter ? Why can't we check them again > > from OnMouseWheelIdle, are they lost ? > > > > Thanks, > > -Mathieu > > > > On 10/18/07, Nigel Nunn <nN...@au...> wrote: > > > Hi Philip, > > > > > > > I changed the wheel mouse code to accumulate wheelmouse events. > > > > This makes the wheel mouse more fluid. > > > > > > > > Philip Schuchardt > > > > > > Thanks -- nice adjustment! > > > Nigel > > > > > > > > > -----Original Message----- > > > From: wxv...@li... > > > On Behalf Of Philip Schuchardt > > > Sent: Thursday, 18 October 2007 12:59 AM > > > To: wxVTK Mail List > > > Subject: [wxVTK] Wheel mouse code update > > > > > > > > > > > > ----------------------------------------------------------------------- > > >-- This SF.net email is sponsored by: Splunk Inc. > > > Still grepping through log files to find problems? Stop. > > > Now Search log events and configuration files using AJAX and a browser. > > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > _______________________________________________ > > > Wxvtk-users mailing list > > > Wxv...@li... > > > https://lists.sourceforge.net/lists/listinfo/wxvtk-users |