Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET API for HID (USB)? [closed]

Tags:

c#

.net

usb

hid

Is there an API in .NET (C#) for using USB HID (human interface) devices?

like image 990
jco Avatar asked Sep 10 '25 20:09

jco


2 Answers

HidLibrary wraps up all the P/Invoke calls for you. But no, it doesn't look there are any nice framework APIs for dealing with USB devices.

like image 140
Jake Almer Avatar answered Sep 12 '25 10:09

Jake Almer


Here's mine little library for dealing with HID devices.

It might be useful, especially when you are trying to communicate using raw HID reports. I've also included a simple demonstration of how to use it.

like image 23
Tomasz Watorowski Avatar answered Sep 12 '25 11:09

Tomasz Watorowski