[Bug 8320] DirectInput joystick timestamps are wrong

Wine Bugs wine-bugs at winehq.org
Tue May 8 17:41:24 CDT 2007


http://bugs.winehq.org/show_bug.cgi?id=8320


hoof at users.sourceforge.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |




------- Additional Comments From hoof at users.sourceforge.net  2007-08-05 17:41 -------
Microsoft's docs say this: "The system time returned in dwTimeStamp comes from
the same clock used by the Microsoft Win32GetTickCount or timeGetTime functions,
but it produces potentially more precise values. For example, on Microsoft
Windows 95, the GetTickCount timer is updated only every 55 milliseconds, but
the dwTimeStamp value is accurate to within 1 millisecond. Therefore, if you
call GetTickCount and it returns n, and you then receive an event with a
timestamp of n + n1, you cannot assume that the event took place exactly n1
milliseconds after the call to GetTickCount."

Your timestamps differ from GetTickCount by my system uptime.  GetTickCount will
say something like 20000 milliseconds and the joystick timestamp will be
80000000.  You aren't off by 55 milliseconds, you are giving timestamps that are
a day into the future.


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list