hidInit function

void hidInit()

Initialize the hidapi library.

Not strictly required — called automatically by hidEnumerate and hidOpenPath. Call explicitly if multiple threads may open devices simultaneously.

Implementation

void hidInit() {
  final result = ffi.hid_init();
  if (result < 0) throw HidException('hid_init failed');
}