Hi Ku, Not sure about the below, but could it be that you are getting two clicks because you are receiving one on the first click and one on release? You may need to post some code of your event handler.
Hope it helps Martin Naylor -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Ku Krapox Sent: 23 June 2010 11:10 To: [email protected] Subject: [osg-users] osgGA::GUIEventHandler problem Hi, I keep having this strange behavior with my custom osgGA::GUIEventHandler class : the handle() method is executed twice each time I click on the handled object... I'm catching PUSH events only, and every single click on my object results in two runs in the corresponding block of the handle() method. The first idea would be that my EventHandler is added twice on my object but it is NOT the case. I'm setting it inside the constructor of another object, which is instanciated only once in the whole app. My handled object is inside an osg::Camera, could it be because of this? Picking objects inside a camera is tricky, but I managed to do it. The only problem is that they are picked twice... does a camera generate two PUSH events when clicked? So here I am... Does anyone have a clue on what's wrong with my handler? Or how I could debug it? Thanks! :) Cheers, Ku ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=29301#29301 _______________________________________________ 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

