Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDL_WaitEventTimeout function #137

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Closed

SDL_WaitEventTimeout function #137

SDLBugzilla opened this issue Feb 10, 2021 · 0 comments

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: HG 2.0
Reported for operating system, platform: Mac OS X 10.5 (Intel), All

Comments on the original bug report:

On 2009-01-18 21:14:28 +0000, Pierre Phaneuf wrote:

Created attachment 292
adds SDL_WaitEventTimeout function

Here's a patch to add an SDL_WaitEventTimeout method to SDL 1.3 (as of r4406) without changing anything underneath. It is careful to avoid calling SDL_GetTicks() if either a zero or an infinite timeout have been requested.

Also, it reimplement SDL_PollEvent and SDL_WaitEvent in terms of this more generic function. It would be better if they were inlined in the header, but I wasn't sure of the policy for that, since strange compilers might be involved (I'm usually more of a C++ hacker).

On 2009-02-16 22:01:35 +0000, Sam Lantinga wrote:

Thanks! I reworked this a little bit and committed it as revision 4438.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant