Check whether the screensaver is currently enabled.
Defined in <SDL3/SDL_video.h>
bool SDL_ScreenSaverEnabled(void);
(bool) Returns true if the screensaver is enabled, false if it is disabled.
The screensaver is disabled by default.
The default can also be changed using SDL_HINT_VIDEO_ALLOW_SCREENSAVER
.
This function is available since SDL 3.1.3.