SDL_PollEvent returns 0 when no events are left to process, perhaps this happens more often than you realize?
Also the nature of polling implies if you wait too long between polls (doing work in your switch) you may miss something.
pseudorandom21
Practically a Posting Shark
890 posts since Jan 2011
Reputation Points: 216
Solved Threads: 110
Skill Endorsements: 0
The dox also say it's used to add events to the queue, so after you process one in main I suppose you can put it back on the queue...
Not sure how that will pan out though.
pseudorandom21
Practically a Posting Shark
890 posts since Jan 2011
Reputation Points: 216
Solved Threads: 110
Skill Endorsements: 0
Question Answered as of 1 Year Ago by
pseudorandom21