开发者

GetLastInputInfo equivalent in Linux to detect last input time

Is there a GetLas开发者_开发知识库tInputInfo() equivalent that can be used in Linux?

The intention is to detect the last input time (keyboard or mouse) of the user. Am using python to script the program.


XScreenSaverQueryInfo

The idle field specifies the number of milliseconds since the last input was received from the user on any of the input devices. The event-mask field specifies which, if any, screen saver events this client has requested using ScreenSaverSelectInput.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜