sdl2: Uses SDL_Events stored on function -scope
sdl2-client ui_main() stores locally SDL_Events used globally.
Patches for all branches, including S2_6 where also sdl-client handled.
sdl2-client ui_main() stores locally SDL_Events used globally.