hidapi 0.1.5
hidapi: ^0.1.5 copied to clipboard
Cross-platform Dart bindings for hidapi — the de facto C library for USB HID access. Compiles hidapi from vendored source via Dart build hooks.
import 'package:hidapi/hidapi.dart';
void main() {
hidInit();
try {
final devices = hidEnumerate();
print('Found ${devices.length} HID device(s):');
for (final d in devices) {
print(' ${d.manufacturer} ${d.product} — ${d.path}');
}
} finally {
hidExit();
}
}