libhid provides a generic and flexible way to access and interact with USB HID devices, much like libusb does for plain USB devices. It is based on libusb 0.1, thus it requires no special HID support in the kernel. Furthermore, it aims to support all operating system supported by libusb: Linux, BSD, OS X, and Windows (via libusb-win32).
Extracted automatically from Libhid homepage
brew install libhid
The following 2 dependencies will be installed if you install Libhid: