mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fixed getIdleTime() on windows
This commit is contained in:
parent
1c78cbc0c9
commit
a6f3f5f169
@ -23,8 +23,9 @@
|
||||
uint32_t Platform::getIdleTime()
|
||||
{
|
||||
LASTINPUTINFO info = { 0 };
|
||||
info.cbSize = sizeof(info);
|
||||
if(GetLastInputInfo(&info))
|
||||
return info.dwTime / 1000;
|
||||
return GetTickCount() - info.dwTime;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user