Hi,
As the title says it i’m looking for the APi in haiku that can get me this info from the OS, i looked at Screensaver.h but couldn’t find anything.
I found the following for other platforms in this file.
https://hg.pidgin.im/pidgin/main/file/13e4ae613a6a/pidgin/gtkidle.c
Get the number of seconds the user has been idle. In Unix-world
* this is based on the X Windows usage. In MS Windows this is
* based on keyboard/mouse usage information obtained from the OS.
* In MacOS X, this is based on keyboard/mouse usage information
* obtained from the OS, if configure detected IOKit. Otherwise,
* MacOS X is handled as a case of X Windows.
So, how is it for haiku?