[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 23:09:54 PST 2020


Thank you for your questions.I want to know if the sent 
GUIEventAdapter::USER message has been processed completely.

Check whether GUIEventAdapter::USER has been processed completely. Should I 
count the USER by myself?  

在2020年11月16日星期一 UTC+8 下午5:42:05<OpenSceneGraph Users> 写道:

> On Mon, 16 Nov 2020 at 05:05, OpenSceneGraph Users <
> osg-... 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.
>

-- 
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/c9e71a63-108f-41c7-bcb6-c8f38a168ac2n%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20201116/154f8e07/attachment.html>


More information about the osg-users mailing list