Hi Robert, >> But... the event will have happened before current time reported by >> getTime(), it'll have occured between the time of the last event check >> and the current time. >> Do Win32 events have a time stamp assigned to them? Could this be >> used to offset the time of events relative to the last event check?
This is right, and that's the same argument I made initially. However when no mouse movement occur for a while, that last-check time can be off substantially and is the point made by Tim. Considering this, the better approximation between returning an earlier-time vs later-time than actual time is the later-time variant since it's bounded by at most one-frame. The ultimate solution is of course to use timestamps from the native mouse events to refine the event time, and that is something that needs to be looked into. André -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield Sent: July-11-07 9:01 AM To: osg users Subject: Re: [osg-users] Events from the past On 7/11/07, André Garneau <[EMAIL PROTECTED]> wrote: > Hi Tim, > > Yep you're right. Moving the assignment _timeOfLastCheckEvents = > getEventQueue()->getTime(); ahead of the assignment of the eventTime > variable would be one way to solve this. But... the event will have happened before current time reported by getTime(), it'll have occured between the time of the last event check and the current time. Do Win32 events have a time stamp assigned to them? Could this be used to offset the time of events relative to the last event check? Robert. _______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/ _______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/