Hi all,

 

I’ve recently moved from 1.0 to 1.1.1 rc1 and updated my UI code to use EventQueue (rather than deriving from GUIEventAdapter …). To connect mouse events I was using the mouse button enum defined in GUIEventAdapter to specify the button id. However, EventQueue expects the left, middle and right mouse buttons as

 

Left – 1

Middle – 2

Right – 3

 

Whereas GUIEventAdapter defines the mouse buttons as

 

Left – 1

Middle – 2

Right – 4

 

Consequently, the right mouse button stopped working!

 

This isn’t a “bug”, but it’s not very intuitive … perhaps an enum in EventQueue, or at least a comment indicating the id for the respective mouse buttons.

 

Cheers,

Gian

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

Reply via email to