added Mac idle Detection

This commit is contained in:
WarmUpTill 2017-02-04 00:14:44 +01:00 committed by GitHub
parent 1558ead988
commit 960774ce5c

View File

@ -105,3 +105,21 @@ bool isFullscreen() {
}
return false;
}
int secondsSinceLastInput()
{
double time = CGEventSourceSecondsSinceLastEventType(kCGEventSourceStateCombinedSessionState, kCGAnyInputEventType) + 0.5;
return (int) time;
}
void GetProcessList(QStringList&)
{
//todo
return;
}
bool isInFocus(QString const&)
{
//todo
return 0;
}