Is there any way to check are there any buttons pressed down? Not necessarily interested in the events.
Sorry for fuzzy reply.
Checking NSEvent.CurrentModifierFlags did the trick for me.
Here is topic about that
Thanks for the link. I already tried NSEvent.AddLocalMonitorForEventsMatchingMask(NSEventMask.KeyDown, KeyboardEventHandler);, but it did not work. My software has only status bar icon, no UI, and my guess is that this NSEvent.AddLocalMonitorForEventsMatchingMask requires focus to the UI.
Unfortunately "it does not work" doesn't give a lot of detail for people here to work with.
Without a small sample, or significantly more detail, I doubt anyone is going to be able to answer your question.
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies