SDL_ScreenSaverEnabled

Check whether the screensaver is currently enabled.

The screensaver is disabled by default.

The default can also be changed using SDL_HINT_VIDEO_ALLOW_SCREENSAVER.

extern (C) nothrow @nogc extern
bool
SDL_ScreenSaverEnabled
()

Return Value

Type: bool

true if the screensaver is enabled, false if it is disabled.

Threadsafety: This function should only be called on the main thread.

See Also

Meta