BlackSharp.IO.HID
1.3.2
Prefix Reserved
dotnet add package BlackSharp.IO.HID --version 1.3.2
NuGet\Install-Package BlackSharp.IO.HID -Version 1.3.2
<PackageReference Include="BlackSharp.IO.HID" Version="1.3.2" />
<PackageVersion Include="BlackSharp.IO.HID" Version="1.3.2" />
<PackageReference Include="BlackSharp.IO.HID" />
paket add BlackSharp.IO.HID --version 1.3.2
#r "nuget: BlackSharp.IO.HID, 1.3.2"
#:package BlackSharp.IO.HID@1.3.2
#addin nuget:?package=BlackSharp.IO.HID&version=1.3.2
#tool nuget:?package=BlackSharp.IO.HID&version=1.3.2
<h1 align="center">BlackSharp.IO.HID</h1>
<p align="center"> <img src="https://raw.githubusercontent.com/Blacktempel/BlackSharp/master/Assets/BlackSharpFull.png" width="128" height="128" alt="BlackSharp.IO.HID logo"/> </p>
BlackSharp.IO.HID discovers HID interfaces and exchanges raw HID reports.
Features
- Enumeration of currently available HID interfaces
- Vendor and product IDs, device paths, report lengths and other metadata when available
- Input and output reports through
HIDStream - Feature reports through
GetFeatureandSetFeature - Worker-based reads and writes with configurable timeouts
- Native I/O cancellation during stream disposal
Supported .NET versions
| .NET version | Support |
|---|---|
| .NET Framework 4.7.2 | ✅ |
| .NET Framework 4.8.1 | ✅ |
| .NET Standard 2.0 | ✅ |
| .NET 8 | ✅ |
| .NET 9 | ✅ |
| .NET 10 | ✅ |
| .NET 11 | ✅ |
NuGet
dotnet add package BlackSharp.IO.HID
Supported platforms
| Operating system | Support | Implementation |
|---|---|---|
| Windows | ✅ | SetupAPI enumeration and native HID handles |
| Linux | ✅ | sysfs discovery and /dev/hidraw* access |
| Other | ❌ | Not implemented |
The application needs permission to open the selected HID interface. This may require elevated privileges.
Usage
List the HID interfaces exposed by the operating system:
using BlackSharp.IO.HID;
foreach (var device in HIDDeviceEnumerator.GetDevices())
{
Console.WriteLine($"{device.VendorID:X4}:{device.ProductID:X4} {device.ProductName}");
}
Open a selected interface through HIDDevice.Open() or TryOpen(out stream).
Dispose the stream when you finish.
Support and license
Report issues in the BlackSharp issue tracker. Licensed under the Mozilla Public License 2.0.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net11.0 is compatible. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. net48 was computed. net481 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.7.2
- BlackSharp.Core (>= 1.3.2)
-
.NETFramework 4.8.1
- BlackSharp.Core (>= 1.3.2)
-
.NETStandard 2.0
- BlackSharp.Core (>= 1.3.2)
-
net10.0
- BlackSharp.Core (>= 1.3.2)
-
net11.0
- BlackSharp.Core (>= 1.3.2)
-
net8.0
- BlackSharp.Core (>= 1.3.2)
-
net9.0
- BlackSharp.Core (>= 1.3.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.3.2 | 72 | 11/30/2026 |
| 1.3.1 | 103 | 11/24/2026 |
| 1.3.0 | 112 | 11/21/2026 |
| 1.2.12 | 115 | 11/16/2026 |
| 1.2.11 | 122 | 11/10/2026 |
| 1.2.10 | 96 | 11/6/2026 |
| 1.2.9 | 98 | 11/4/2026 |
| 1.2.8 | 118 | 11/1/2026 |
| 1.2.7 | 107 | 10/30/2026 |
| 1.2.6 | 113 | 10/28/2026 |
| 1.2.5 | 124 | 10/23/2026 |
| 1.2.4 | 112 | 10/22/2026 |
| 1.2.3 | 137 | 10/11/2026 |
| 1.2.2 | 147 | 9/23/2026 |
| 1.2.1 | 162 | 9/14/2026 |
| 1.2.0 | 170 | 8/21/2026 |