Hi X11 experts, I have the GraphicsWindowX11::checkEvents() method written and it works fine for catching X11 events and converting them to equivialant osgGA events via the osgGA::EventQueue. EventQueue is also assigning its own time stamps, but due to the fact that I call checkEvents once per frame all the events I'm passing in have very similiar time as generated by EventQueue - because all the events are being passed in effectively as a batch.
Ideally I'd like the set the time that the event occurred not to when checkEvents is called but when the windowing system generated the events. Now the X11 events I'm interested pretty well all have a "Time time" member of these event structures. This Time value is in milliseconds, but... I don't know what this time value is relative too, so mapping it to a time value on the OSG is yet possible. I have browsed the X11 headers, and various online docs but as yet I haven't spotted a straight forward way of getting a current time stamp, if I can get this then I can compute how long before the checkEvents() call happens that the event occurred. So any suggestions? Robert. _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
