Re: [osg-users] multiple input with osgwidgets

2016-10-05 Thread Gianni Ambrosio
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

Re: [osg-users] multiple input with osgwidgets

2016-10-05 Thread Sebastian Schmidt
gambr wrote: > Honestly I usually derive from osgGA::GUIEventHandler to handle mouse events. > > Cheers, > Gianni I use the osgWidget::MouseHandler and osgGA::CameraManipulator which both derive from osgGA::GUIEventHandler. The reason why i use MouseHandler is because it will send events to

Re: [osg-users] multiple input with osgwidgets

2016-10-04 Thread Gianni Ambrosio
Honestly I usually derive from osgGA::GUIEventHandler to handle mouse events. Cheers, Gianni -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=68849#68849 ___ osg-users mailing list

Re: [osg-users] multiple input with osgwidgets

2016-10-04 Thread Sebastian Schmidt
gambr wrote: > Hi Meldryt, > I worked with osgWidget in the past. I move a widget with > left_mouse+mouse_move and resize it with central_mouse_button+mouse_move. > I also tried to show a contextual menu clicking with right mouse button on it. > Now I'm on OSG 3.4.0 but moved recentrly from OSG

Re: [osg-users] multiple input with osgwidgets

2016-09-30 Thread Gianni Ambrosio
Hi Meldryt, I worked with osgWidget in the past. I move a widget with left_mouse+mouse_move and resize it with central_mouse_button+mouse_move. I also tried to show a contextual menu clicking with right mouse button on it. Now I'm on OSG 3.4.0 but moved recentrly from OSG 3.0.1. Could you please

Re: [osg-users] multiple input with osgwidgets

2016-09-30 Thread Sebastian Schmidt
bump! Does anyone else have this issue? I have no problem when i try to track this event inside my handle function of the custom osgGA::StandardManipulator class. But for my GUI widgets its easier to track this input events just by overriding mousePush, mouseDrag, ... events of