split out handling SDL events from making C events for them, to make SDL_PumpEvents work; fixes #1419