Wrappers for SDL_WaitEvent and SDL_WaitEventTimeout