How to use pure Swift to talk to a USB HID device Since it was a pain in the ass to get Swift to work with HID without resorting to inline objective-c or bindings, I thought it would be good to publish the solution I found. I hope its of use to others.
Topics:
- IOHIDDeviceCallback
- IOHIDDevice
- UnsafeMutablePointer
- unsafeBitCast