04-26-2020, 02:52 PM #1
- Member Since
- Apr 26, 2020
Most Core Graphics key events not triggering in Java
- Rep Power
See this issue on the jnativehook GitHub page for more information. Thatís where I first posted my question.
IDE = Eclipse 2019-12 IDE
JavaFX = version 13
OS = macOS Catalina 10.15.3
jnativehook = version 2.1.0
libuiohook = dependency of jnativehook
The jnativehook library uses the JNI to call compiled c++ (?) code that creates Core Graphics event taps when run on a mac. When the system input events occur, in Java I can specify event handlers to handle them.
Most mouse events register fine and are passed to the Java event handlers. However, most key events are completely ignored. Iíve gone all the way to the source c++ code (libuiohook) where the event tap is created and confirm that no events are being registered. However, when I run the libuiohook through a compiled c++ driver program, all events are registered.
At this point Iím pretty sure that the issue of lost events has to do with the isolation of the JVM from the rest of the system. Does anyone know how to pass Core Graphics/Quartz events through to a Java app?
Iíve already tried asking on the Apple Dev forums but my question needs to be approved before it can be posted and after about a week Iíve seen no updates as to that. Iíve also asked this same question on stackoverflow.
Users Browsing this Thread
There are currently 2 users browsing this thread. (0 members and 2 guests)
By Spooky in forum Apple DesktopsReplies: 2Last Post: 05-16-2012, 12:31 AM
By MBurleson in forum Other Hardware and PeripheralsReplies: 8Last Post: 04-04-2012, 11:09 AM
By mircomandrillo in forum Apple DesktopsReplies: 0Last Post: 12-03-2009, 05:03 AM
By manymanymacs in forum macOS - Operating SystemReplies: 5Last Post: 10-02-2009, 05:13 PM
By Lester Barnes in forum Apple DesktopsReplies: 4Last Post: 06-16-2009, 09:40 AM
Tags for this Thread