On Wed, 2011-02-09 at 09:42 -0500, Jeremy Moles wrote: > On Tue, 2011-02-08 at 16:59 -0800, Eduardo Poyart wrote: > > Hello, > > > > > > It seems like osgWidgets doesn't support double-click. > > Well, osgWidget doesn't support or not support it, it's really a feature > of the event handler you have set. The default one is in: > > src/osgWidget/ViewerEventHandler.cpp > > ..and I certainly do see some code in there referring to DOUBLECLICK. > However, when I wrote that way back I can't say for sure I ever did a > doubleclick test. > > I'll try and check it out later, if you don't get to it first.
Okay, I just took a look and the doubleClick handler just returns false. It looks like I never got around to it. It won't be hard to add, maybe I can do it later tonight hopefully. > > What would be a good way to implement it? Timing the clicks on my > > widget manager doesn't work, because I always miss the second click. I > > think that is because OSG's event handler is translating the second > > click into a double-click and osgWidgets never gets informed about the > > double-click. > > > > > > I'm willing to submit a patch for osgWidgets, but I would like some > > guidance on the right direction. > > > > > > Thanks > > Eduardo > > > > > > _______________________________________________ > > osg-users mailing list > > [email protected] > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

