I need to detect when the mouse or keyboard activity is present. My application runs in the background (tray) and I need to detect this activity even when my app isn\'t in f
Since JNI is required, which relys on the OS specific APIs, the only way would be to
have an implementation for each supported OS and load it dynamically after detecting the OS in you application.