Animeshz / keyboard-mouse-kt

A lightweight multiplatform library for interacting with global keyboard and mouse events and states from Kotlin, Java and NodeJS.
https://animeshz.github.io/keyboard-mouse-kt
MIT License
52 stars 2 forks source link

Keyboard event receiving part in JVM is implemented incorrectly. #8

Closed Animeshz closed 3 years ago

Animeshz commented 3 years ago

In windows, all the work (from hooking to unhooking) must be done in single thread or else, the system becomes very slow and laggy, and hook doesn't work as expected.

EXCEPTION_ACCESS_VIOLATION is also generated, need to recheck things. This generally occurs when local references of JNI are stored in shared library.