It's need to port our software on MacOS and Linux. How can I detect input IDLE on MacOS and Linux using Delphi 10.2?
In Windows I use :
aLastInputInfo.cbSize := SizeOf(TLastInputInfo);
GetLastInputInfo(aLastInputInfo);
case (GetTickCount - aLastInputInfo.dwTime) / 1000 / 60 > IDLE_TIMER of
True: Synchronize(OnExecuted);
False: Synchronize(OnExcepted);
end;
But this is platform specific, relying on Windows API calls.