[SDL] waiting for events and select()
slouken at devolution.com
Fri Aug 4 17:00:55 PDT 2000
> I'v seen this subject in the mailing list but without
> a satisfying answer, so I'd like to bring this up
> For various reasons I'd like to be able to implement the
> console layer in berlin with SDL as well, so I'm looking for
> a way to do the above with SDL API. Unfortunately, it appears
> as if there is no event waiting mechanism which allows me to
> add my own sources or to interrupt the WaitEvent call.
> Can you help me ?
I would recommend that you create a user event and add it to the
SDL event queue with the function SDL_PushEvent():
-Sam Lantinga, Lead Programmer, Loki Entertainment Software
More information about the SDL