Is there a mechanism in SDL (or an equivalent) to manually queue events?
What I mean is, suppose I have an application that I am doing some
regression testing on. Once the application is started, I want to hit the
down arrow three times, hit , then quit the application.
Is there a way for me to, once I have initialized SDL and before the next
poll for events, queue up some events to be executed automatically?
Is there a mechanism in SDL (or an equivalent) to manually queue events?
What I mean is, suppose I have an application that I am doing some
regression testing on. Once the application is started, I want to hit the
down arrow three times, hit , then quit the application.
Is there a way for me to, once I have initialized SDL and before the next
poll for events, queue up some events to be executed automatically?
The SDL_PeepEvents() function has a flag to allow it to queue events.
It’s not advertised, but is in the SDL_events.h header file.
-Sam Lantinga (slouken at devolution.com)
Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec