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

Event parameters #55

Open
salviati opened this issue Mar 7, 2012 · 1 comment
Open

Event parameters #55

salviati opened this issue Mar 7, 2012 · 1 comment

Comments

@salviati
Copy link
Contributor

salviati commented Mar 7, 2012

The current event handling functions pass around a copy of a 24-bytes struct for each call, which should be avoided.

@DeedleFake
Copy link
Contributor

You mean where PollEvent() and WaitEvent() allocate new instances of C.SDL_Event? If so, then I've made some modifications to get around it. Note that the return value of previous calls to either function now becomes invalid at the next call to either one; I've also modified the comments for both functions to say so. I'll submit a pull request for it once the fix for issue 54 gets pulled.

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

2 participants