Hi,

I'm looking to implement event handling in a handler not attached to a View.  
The code snippet below is what I'm thinking of doing (the function would take 
an eventadapter similar to the handle method of the camera manipulators).  Is 
this a valid way to go, or am I missing something?  If multiple events accrue, 
do I have access to those through getCurrentEventState(), or just the most 
recent?  Or am I thinking about this entirely wrong? 


Code:
osgViewer::Viewer v;
while(!v.done())
{
v.frame();
MyEventHandlerFunctionOrClass(v.getEventQueue()->getCurrentEventState())
}



Thank you!

Cheers,
Tom

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=30088#30088





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to