SDL_AddEventWatch ordering

Hello everyone,

Does SDL_AddEventWatch offer any kind of ordering guarantee? For instance,
if I call SDL_AddEventWatch two times in a row, will the event watches be
called in order, reverse order or in random?

The same question applies to SDL_SetEventFilter.

Thanks,
Stefanos

All filters or watches are run in reverse order. The last set will be called first.On 17 ??? 2014, at 7:38 ?.?., “Stefanos A.” wrote:

Hello everyone,

Does SDL_AddEventWatch offer any kind of ordering guarantee? For instance, if I call SDL_AddEventWatch two times in a row, will the event watches be called in order, reverse order or in random?

The same question applies to SDL_SetEventFilter.

Thanks,
Stefanos


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Thanks, this fits with what I am seeing. It would be nice if this was
mentioned in the documentation (wiki or in the source.)

2014-02-18 13:47 GMT+01:00 :> All filters or watches are run in reverse order. The last set will be

called first.

On 17 ??? 2014, at 7:38 ?.?., “Stefanos A.” <@Stefanos_A> wrote:

Hello everyone,

Does SDL_AddEventWatch offer any kind of ordering guarantee? For
instance, if I call SDL_AddEventWatch two times in a row, will the event
watches be called in order, reverse order or in random?

The same question applies to SDL_SetEventFilter.

Thanks,
Stefanos


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org