I am writing a tool that tracks statistics about key strokes. For that I create an event tap using CGEventTapCreate
(docs). Since my code does not alter events, I create the tap using the kCGEventTapOptionListenOnly
option.
Do I still need to minimize the runtime of my event handling callback for fast processing of keyboard events? I assume that a listen-only handler does not block the OS-internal event handling queue, but I can't find anything assertive for that in the documentation.
Many thanks in advance.