[osg-users] Minor issue with GraphicsWindowWin32.cpp and mouse capture in 3.4.0

Andrew Cunningham andrewC at mac.com
Mon Jan 23 14:18:37 PST 2017


Hi,
Somewhere along the line since 3.0.1 the logic of 'mouse capture' changed to have the concept of it being possible to have multiple buttons 'captured' on button down. When the capture count goes to 0 on mouse up, the mouse is 'released'.

Unfortunately, this seems to cause problems with , say, Win32 pop-up/context menus as OSG is not 'releasing' the mouse to the pop-up menu. 

The 'fix' ( for me) was to revert to 3.0.1 behavior so that the ::ReleaseCapture() is always called on 'button-up'. Just a heads up for others...

Andrew

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=70033#70033








More information about the osg-users mailing list