I am working on an application to detect which keyboard fires key event when several are connected to PC.
I have taken this code as example: https://stackoverflow.com/questions/30380400/how-to-tap-hook-keyboard-events-in-osx-and-record-which-keyboard-fires-each-even
Now when I press key code callback is triggered printing the id of keyboard.
However I have tested it using onscreen keyboard and the application does not detect key presses.
How can I achieve that? What am I missing?
Thanks in advance