[osg-users] Order of event handler evaluation, docs?

Robert Osfield robert.osfield at gmail.com
Sun Jan 7 08:14:46 PST 2018

Hi James,

You have complete control of the event order if you want it, you just
need to subclass from
osgViewer:Viewer/CompositeViewer:eventTraversal() and do what you
want, or just doing your own implementation of the frame loop.

The best illustration of what the osgViewer is doing w.r.t event order
is to read the osgViewer::Viewer::eventTraversal() implementation in


On 7 January 2018 at 13:19, James Turner <zakalawe at mac.com> wrote:
> Hi,
> Is there any documentation on the order in which osgGA::EventHandlers are invoked for a particular (mouse event)?
> I’m working on code which has a mixture of handlers set on the Viewer (i.e global) but also others attached to geodes and drawables within the scene. I’d ideally like to have /some/ global handlers executed before the handlers on nodes are considered, but it seems as if by default the global handlers are all executed after them?
> (I need to do some filtering of events in certain mouse modes, before the nodes get a chance to do their various things)
> Again not necessarily looking for a complete explanation, just a point to any relevant docs.
> Kind regards,
> James
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

More information about the osg-users mailing list