I want to trap windows mouse and keyboard input with the help of event given by windows for detecting system idle or not in C++.
Two things I have tried: 1. Hooking concept, but as antivirus might not allow it and also CPU usage increases if we use hooking. 2. GetLastInputInfo() which also eats CPU usage about 50 %
Anyone can tell me if windows event to trap the mouse and keyboard input is available or not...