Re: [AD] Disable screensaver |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2008-10-30, Trent Gamblin <trent@xxxxxxxxxx> wrote:
> Since most fullscreen games these days disable the screensaver, and
> I need to do so for my game since joystick input does not keep the
> screensaver from being activated, I thought it would be a good
> addition to A5 to have a cross platform way to do it.
Agreed.
> void al_set_screensaver(bool active);
> bool al_get_screensaver(void);
>
> Something like that maybe? Suggestions, comments?
al_set_screensaver_active(), al_get_screensaver_active()?
> Should
> "al_get_screensaver" query the system or only return what has been
> specified by the "al_set_screensaver" function, defaulting to
> active?
I think it should query. "Don't know" is a valid response.
Do we restore the original setting when Allegro exits, or expect the
user to do it?
Peter