FlightGear next
screensaver_control.hxx File Reference

Go to the source code of this file.

Functions

void fgOSDisableScreensaver ()
 Attempt to disable the screensaver.
 

Function Documentation

◆ fgOSDisableScreensaver()

void fgOSDisableScreensaver ( )

Attempt to disable the screensaver.

Screensavers/powersavers often do not monitor the joystick, and it is hence advisable to disable them while FlightGear is running. This function always exists, but currently only actually does anything on Linux, where it will disable gnome-screensaver/kscreensaver until FlightGear exits.

The following might be useful to anyone wishing to add Windows support: http://msdn.microsoft.com/en-us/library/windows/desktop/aa373233%28v=vs.85%29.aspx http://msdn.microsoft.com/en-us/library/windows/desktop/aa373208%28v=vs.85%29.aspx (While this documentation says it only disables powersave, it is elsewhere reported to also disable screensaver) http://msdn.microsoft.com/en-us/library/windows/desktop/dd405534%28v=vs.85%29.aspx

Definition at line 39 of file screensaver_control.cxx.