We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1336 - Added a timestamp on all SDL events
Summary: Added a timestamp on all SDL events
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: HG 2.0
Hardware: All All
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-23 04:11 UTC by Gueniffey
Modified: 2011-12-29 02:14 UTC (History)
0 users

See Also:


Attachments
Patch for current SDL snapshot (2011/11/23) (6.37 KB, application/octet-stream)
2011-11-23 04:11 UTC, Gueniffey
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gueniffey 2011-11-23 04:11:31 UTC
Created attachment 733 [details]
Patch for current SDL snapshot (2011/11/23)

The attached simple patch adds a timestamp to all SDL events. It is useful to dismiss old events and add UI responsiveness (my application does some extensive tasks that creates a delay in the event queue handling. With this patch, I can deal only with the most recent events.
Comment 1 Sam Lantinga 2011-12-29 02:14:14 UTC
Added, thanks!
http://hg.libsdl.org/SDL/rev/d166819bf2b3