Jeremy, If you do that I will be eternally grateful!!!
I noticed it returns null and I started to try to figure out a way to do it, but it seems that it's not trivial because of the intersection tests and z layer tests. If somehow you can't get around to doing it, please let me know and give me some pointers (i.e. is it a question of factoring out the intersection tests from the single-click so that they are used for the double-click?) Thanks Eduardo On Wed, Feb 9, 2011 at 6:54 AM, Jeremy Moles <jer...@emperorlinux.com>wrote: > 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 > > > osg-users@lists.openscenegraph.org > > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > > _______________________________________________ > > osg-users mailing list > > osg-users@lists.openscenegraph.org > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org