libsdl-org / sdlwiki

This is the raw contents of SDL's wiki. You can edit this through GitHub or at https://wiki.libsdl.org/ now!
https://wiki.libsdl.org/
79 stars 32 forks source link

Feedback on page SDL3/SDL_PeepEvents #547

Closed RenaKunisaki closed 3 months ago

RenaKunisaki commented 3 months ago

The page doesn't say whether it's allowed to write something like SDL_PeepEvents(NULL, 1000000, SDL_PeekEvent, SDL_EVENT_FIRST, SDL_EVENT_LAST); to return the number of queued events without actually retrieving them. (ie is events allowed to be null?)

If not, I'd like to suggest that; I don't see any way to get that information, which would be helpful for debugging.

slouken commented 3 months ago

Fixed, thanks!