mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-22 01:44:49 -05:00
added Mac idle Detection
This commit is contained in:
parent
1558ead988
commit
960774ce5c
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user