Hi Antoine, The push and release will have the button set, but not necessarily any other event type. You can always get the current button mask though - use this to find out what buttons are currently pressed.
Robert. On 12/4/06, Antoine Rennuit <[EMAIL PROTECTED]> wrote:
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/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
