Hello,

In the handle function of my class that inherites from
osgGA::GUIEventHandler, I have a switch handling several cases as for mouse
events: PUSH, RELEASE, MOVE, DRAG...
In the PUSH case, I can do a ea.getButton() (assuming that ea is the name of
the osgGA::GUIEventAdapter), and it retrieves the correct button that is
pressed, but when I do a ea.getButton() in the DRAG case the returned value
is always 0. Is that normal?
What I understood is that the difference between the MOVE and the DRAG is
that in the case of the DRAG a button is pressed. How can I get the button
that is pressed? I could not find anything in the examples...

Thanks,

Antoine.

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to