[osg-users] multiple input with osgwidgets

Gianni Ambrosio g.ambrosio+osg at gmail.com
Wed Oct 5 08:31:06 PDT 2016

Meldryt wrote:
> The reason why i use MouseHandler is because it will send events to the WindowManager which knows all about its windows and widgets.

I may be wrong since I don't know your code in detail but I think about class "responsiblities". From my point of view it's not bad to implement a MouseEventHandler which updates (in some way) the window manager. Maybe a WindowManagerUpdater that will be a collaborator of the MouseEventHandler so that your cose will be more testable. You will not have to send events to the window manager but just call the proper methods from the WindowManagerUpdater.


Read this topic online here:

More information about the osg-users mailing list