hid_get_device_info method
@brief Get The struct #hid_device_info from a HID device.
Since version 0.13.0, @ref HID_API_VERSION >= HID_API_MAKE_VERSION(0, 13, 0)
@ingroup API @param dev A device handle returned from hid_open().
@returns This function returns a pointer to the struct #hid_device_info for this hid_device, or NULL in the case of failure. Call hid_error(dev) to get the failure reason. This struct is valid until the device is closed with hid_close().
@note The returned object is owned by the @p dev, and SHOULD NOT be freed by the user.
Implementation
ffi.Pointer<hid_device_info> hid_get_device_info(
ffi.Pointer<hid_device> dev,
) {
return _hid_get_device_info(
dev,
);
}