[osg-users] How can I know the number of GUIEventAdapter::USER in the message queue for GUIEventHandler?
OpenSceneGraph Users
osg-users at lists.openscenegraph.org
Mon Nov 16 01:41:38 PST 2020
On Mon, 16 Nov 2020 at 05:05, OpenSceneGraph Users <
osg-users at lists.openscenegraph.org> wrote:
> sorry,I mean what method get the number of GUIEventAdapter::USER in OSG?
>
You'll need to get the osgGA::EventQueue which you are pushing the user
events to and then traverse through the events in the queue and check each
one.
The application can have multiple EventQueue, one per osgViewer::Window and
one osgGA::Device, and one per osgViewer::View. The viewer EventTraversal
will collate these and then pass them on to the event handlers and do the
event traversal.
I know nothing about your application so really can't provide any specific
advice.
Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20201116/1bea549a/attachment.html>
More information about the osg-users
mailing list