Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 358 Bytes

README.md

File metadata and controls

10 lines (8 loc) · 358 Bytes

KuandoSwift

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