[SDL] 1.3 Event source addition
Olivier Delannoy
olivier.delannoy at gmail.com
Sat Jul 1 04:15:11 PDT 2006
Ryan you are right, Adding personnalized source is not really needed
and will add a lot of complexity to the API for nothing. Thanks for
making it clear to me ;)
On 6/30/06, Ryan C. Gordon <icculus at icculus.org> wrote:
>
> > What is interesing with the ability of user defined event source is
> > letting SDL do the query when it's needed.
>
> I disagree. Formalizing this would add a lot of complexity, when you
> could just change your program from this...
>
> while (SDL_PollEvent(&e)) {
>
> ...to this...
>
> checkNetwork(); // will call SDL_PushEvent() if needed.
> while (SDL_PollEvent(&e)) { // will handle input and network events.
>
>
> Now someone pointed out that there's no way to prevent two libraries
> from stepping on each other's SDL_USEREVENTs, and that's probably worth
> fixing.
>
> --ryan.
>
>
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl
>
More information about the SDL
mailing list