Can anyone help with inconsistent behaviour on Mac backend? #346
Unanswered
arblackman
asked this question in
Q&A
Replies: 1 comment
-
Could you share a code sample with comments where it doesn't work on macOS? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently trying to write a small app to switch my Logitech MX Keys Keyboard and MX Master Mouse simultaneously between connected machines.
A LOT of people are keen to resolve this - see these articles:
With the right support - this is actually a super easy task - and I've solved it for Windows, but not Mac :(
On my Windows machine I've written a small app (using this library) that listens to the USB device, and when it detects the keyboard changing, it sends a HID write message to also change the mouse - the basics are here:
Sadly, I tried to do the same with the Mac version of the hidapi library, but there is a strange behaviour - wherein the message I'd expect to receive when switching the keyboard does not arrive, and only when I switch back to the Mac I then receive 2 messages - one being the "switch away", (which I am looking for) and one being the "switch back" - but since they only arrive together on switching back, my goal is impossible.
Can anyone suggest a way to capture this special keypress (Logitech MX Keys Keyboard).
Finally, an additional wrinkle - I cannot sudo, or use Admin.
Beta Was this translation helpful? Give feedback.
All reactions