Is there anyway to read keyboard inputs in AppKit off the main thread? I've managed to do so using CGEventTapCreate
but unfortunately it requires permissions I'd rather not have to request. Is there a way to read local inputs off the main thread?
(Use case is a keyboard driven real time audio application where graphics should never block the input->audio pipeline)
I've tried using addLocalMonitorForEventsMatchingMask
but it seems the handler is only called on the main thread even if I setup a runloop in a separate thread. Thanks in advance!