I like it. I would use it to inject eg osgVRPN events into the event stream. Let us know how you get on.
Cheers -- mew Mike Weiblen -- Zebra Imaging -- Austin Texas USA -- http://www.zebraimaging.com/ > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:osg-users- > [EMAIL PROTECTED] On Behalf Of Rafa Gaitan > Sent: Thursday, May 17, 2007 9:49 AM > To: osg users > Subject: [osg-users] User defined events. > > Hi Robert, > > I'm currently trying to add my own defined events. In fact I want to > change > the global state set using a User interface. Of course doing this in a > safe way is > doing the change inside the update traversal, or event traversal. > > Trying to do this in a generic way, I realized that GUIEventAdapter is the > same I was > doing, but only for key and mouse fixed events. Maybe adding a UserDefined > event type > like SDL does, could be really useful. We could take advantage of the > EventVisitor and the default event > management of OSG. > > The only changes would be add an USER_EVENT on EventType enum. > Add a int _userEventId attribute (I think an int should be enough). > And maybe add a userEvent(int eventId) method inside EventQueue class. > > What do you think?, Are there others that could find these useful? > > Greetz! > > -- > Rafael Gaitán Linares > Instituto de Automática e Informática Industrial http://www.ai2.upv.es > <http://www.ai2.upv.es> > Ciudad Politécnica de la Innovación > Universidad Politécnica de Valencia _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
