<div dir="ltr"><div dir="ltr">On Mon, 16 Nov 2020 at 05:05, OpenSceneGraph Users <<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">sorry,I mean  what method  get the number of GUIEventAdapter::USER  in OSG?<br></blockquote><div><br></div><div>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. <br></div><div><br></div><div>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.<br></div><div><br></div><div>I know nothing about your application so really can't provide any specific advice.<br></div><div><br></div><div>Robert.<br></div></div></div>