You do not do this; The JVM, or more specifically AWT, only generates input events when Windows sends its input events, and the JVM only logs events that occur in it.
You may be able to disable it using JNI, but again, perhaps not - it will depend on whether you can get the information required by the underlying API. Since this is likely to be a window handle, you will not have what you need to call the API, even from JNI.
source
share