On 28 November 2016 at 17:23, Bruno Oliveira <[email protected]> wrote: > Hello, > > I created a custom osgGA::GUIEventHandler. > It handles both mouse click(push) and release. > > In both cases (click/push and release) I do > > bool Handler::handle(const osgGA::GUIEventAdapter& > ea,osgGA::GUIActionAdapter& aa) { > > unsigned int buttonMask = ea.getButtonMask(); > > } > > If the event is a mouse push event, buttonMask is OK. If it is a release > event, buttonMask is always zero. Is there any internal reason for this?
If you have released the button the that button won't be pressed so the mask will be 0 if no other buttons are pressed. If you want the button that the event is related to then simply use ea.getButton(). Robert _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

