[osg-users] GUIEventHandler osgGA::GUIEventAdapter::RELEASE

Bruno Oliveira bruno.manata.oliveira at gmail.com
Mon Nov 28 09:23:26 PST 2016


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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20161128/685e2619/attachment-0001.htm>

More information about the osg-users mailing list