Hi Leandro,

On 7/12/06, Leandro Motta Barros <[EMAIL PROTECTED]> wrote:
I compiled it cleanly under Linux, and noticed just one problem when
using an 'osgGA::GUIEventHandler' and handling DRAG events. When I
call 'getButton()', it is not returning any of the mouse button
constants ('LEFT_MOUSE_BUTTON' and the like). For other mouse events,
this works.

Is this a bug or the behavior changed for some reason?

Just looking at the code in src/osgGA/EventQueue.cpp, the method that
generates the drag event is EventQueue::mouseMotion(float x, float y),
and it internals checks the accumulated button mask to determin it the
motion is a drag or a move.

While the code has the correct button mask it won't neccesarily know
what button should be associatedwith the event. If only one button is
pressed in the button mask then it'll be obvious, but what if there is
more than one button pressed?

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

Reply via email to