Thanks for the info, Robert. I tried what you suggested, but I don't seem to
be getting any events back at all: copyEvents(Events&) returns false, and
events.size() is zero. When I used getCurrentEventState() I could access the
mouse position from the GUIEventAdapter that was returned, but I was never
getting any events like button pushes or key presses.
Code is below (I'm using 2.8.2 if that makes a difference).
Code:
osgViewer::Viewer v;
osgGA::EventQueue::Events events;
while(!v.done())
{
v.frame();
if(v.getEventQueue()->copyEvents(events)) printf("returned true\n");
if(events.size()) printf("%i events\n", events.size());
}
Thanks for your help!
Cheers,
Tom
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=30103#30103
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org