mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-23 14:45:38 +00:00
18 lines
344 B
C
18 lines
344 B
C
|
class PowerSaver
|
||
|
{
|
||
|
public:
|
||
|
enum ps_state : int { ps_disabled = -1, ps_instant = 200, ps_enhanced = 3000, ps_default = 10000 };
|
||
|
|
||
|
static void init(bool state = true);
|
||
|
|
||
|
static int getTimeout();
|
||
|
static void updateTimeout();
|
||
|
|
||
|
static bool getState();
|
||
|
static void setState(bool state);
|
||
|
|
||
|
private:
|
||
|
static bool mState;
|
||
|
static int mTimeout;
|
||
|
};
|