| Summary: | SDL_WINDOWEVENT_LEAVE event is repeated continously | ||
|---|---|---|---|
| Product: | SDL | Reporter: | axel mattauch <axel.mattauch> |
| Component: | events | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED INVALID | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | philipp.wiesemann |
| Version: | 2.0.5 | ||
| Hardware: | x86_64 | ||
| OS: | Windows 8 | ||
| Attachments: | Simple test program to understow the window events in SDL2 | ||
|
Description
axel mattauch
2016-12-18 15:46:46 UTC
In the attached test program, the return value of SDL_PollEvent() is not checked to see if there is a new event at all. This might lead to processing the same event several times. The use of the int return value is clearly indicated in the Wiki. I understood falsely that a NULL event is 'no more event'. Bug is in my test program. I apologize for the disturbance. No worries, I'm glad you figured it out. |