From 19f70284adcbdde918267e77325df309a267098c Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 4 Apr 2026 11:36:10 -0700 Subject: [PATCH] Document that you can pass -1 to SDL_WaitEventTimeout() to wait indefinitely --- include/SDL3/SDL_events.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/SDL3/SDL_events.h b/include/SDL3/SDL_events.h index 8c6e0cd8c5..fa923b0d1e 100644 --- a/include/SDL3/SDL_events.h +++ b/include/SDL3/SDL_events.h @@ -1343,7 +1343,7 @@ extern SDL_DECLSPEC bool SDLCALL SDL_WaitEvent(SDL_Event *event); * \param event the SDL_Event structure to be filled in with the next event * from the queue, or NULL. * \param timeoutMS the maximum number of milliseconds to wait for the next - * available event. + * available event, or -1 to wait indefinitely. * \returns true if this got an event or false if the timeout elapsed without * any events available. *