iOS USB HID programming

2020-07-22 10:33发布

问题:

I am trying to make some code regarding USB HID devices. I have found an article about Bluetooth programming which uses Game Kit Framework.

Now I'm looking for some tutorial or maybe some code to work on connecting HID device via USB. Where should I look? Is Game Kit the right way? Is it difficult to implement communication between iOS and HID device?

回答1:

You can use IOKit for USB, but it's a private framework on iOS - so it depends if you want to deploy to the App Store.

Here is the USB Intro for Mac, I'm not sure if it's the same on iOS - but just to get the idea.



回答2:

Actually I just found out that you can develop for external devices with MFi program. It's nicely described here. Also some technical info in Apple's documentation.

But I don't really know what that means... ?