SDL_SetEventFilter compatibility when upgrading from SDL2 to SDL3
0 reputation · 10 Nov 2020, 21:05 UTC
The goal is to confirm that an SDL_SetEventFilter callback installed in an SDL2 application continues to function unchanged when the same source is compiled against SDL3, ensuring that unwanted input events are still suppressed without adding notification noise.
However, the SDL3 migration notes have not settled whether the function signature, the SDL_Event structure passed to the callback, or the set of event types that can be filtered have been altered. This uncertainty makes it unclear whether existing filter logic requires updates or remains compatible across the version boundary.
Does SDL_SetEventFilter retain the same prototype and calling convention in SDL3 as it does in SDL2? Are the SDL_Event fields accessed by the filter callback unchanged between SDL2 and SDL3? Do the event type masks that can be filtered (e.g., SDL_MOUSEMOTION, SDL_KEYDOWN) retain identical values and semantics in SDL3?