Distinguish if HID device is connected to Windows/Macos pc

Hi,

I am working on a device that is keyboard like, but it just needs to send one cmd to switch the screen - alt+tab/cmd+tab. I was able to get this working with Windows, but now I am struggling with Macos devices. I am using nrf52832 with Nrf Connect SDK 2.6.1.

First I noticed Macos requires some kind of device recognition procedure - can this be bypassed or skipped somehow?

Secondly how do I detect that my device was connected to Macos ?

Lastly how do I encode CMD button ? For Left ALT modifier is 0x04, but what is value for CMD?

Thanks,
Michal

Related