[osg-users] get middle mouse event

Sebastian Schmidt herrdersuppen at gmail.com
Mon Apr 25 23:45:10 PDT 2016


Thanks for the answer.

I want to access the mouse state from outside an eventhandler (f.e. Widget or Canvas).

After quick research i found out that WindowManager has functions like isMiddleMouseButtonDown()


Trajce Nikolov NICK wrote:
> Hi Sebastian,
> 
> 
> I think that is the proper way. Further you can get ea.getButtom() to inspect which mouse button was pushed
> 
> 
> Nick
> 
> 
> On Wed, Apr 20, 2016 at 3:28 PM, Sebastian Schmidt < ()> wrote:
> 
> > Hi,
> > 
> > I try to get the mouse event, when the middle button is pushed.
> > 
> > By default the WindowManager receives the event, but unfortunately it is sent as normal mouse push to the widget.
> > 
> > Is there any chance to catch this special event in my widget, without using the osgGA::GUIEventHandler?
> > ...
> > 
> > Thank you!
> > 
> > Cheers,
> > Sebastian
> > 
> > ------------------
> > Read this topic online here:
> > http://forum.openscenegraph.org/viewtopic.php?p=66893#66893 (http://forum.openscenegraph.org/viewtopic.php?p=66893#66893)
> > 
> > 
> > 
> > 
> > 
> > _______________________________________________
> > osg-users mailing list
> >  ()
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org (http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org)
> > 
> 
> 
> 
> -- 
> trajce nikolov nick
> 
>  ------------------
> Post generated by Mail2Forum


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








More information about the osg-users mailing list