HIDDevices.Usages 4.0.5

dotnet add package HIDDevices.Usages --version 4.0.5
NuGet\Install-Package HIDDevices.Usages -Version 4.0.5
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="HIDDevices.Usages" Version="4.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add HIDDevices.Usages --version 4.0.5
#r "nuget: HIDDevices.Usages, 4.0.5"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install HIDDevices.Usages as a Cake Addin
#addin nuget:?package=HIDDevices.Usages&version=4.0.5

// Install HIDDevices.Usages as a Cake Tool
#tool nuget:?package=HIDDevices.Usages&version=4.0.5

Publish Nuget

Description

This library provides a cross-platform .NET Standard encoding of the the USB HID Usage Tables. It is a companion NuGet for HIDDevices, though it can be used on it's own.

The latest USB specification PDF URL that was used for auto-generation can be found in HIDUsageTablesPDF.url, and the generated files found in this folder explicitly state the current specification and generation date in their headers.

Publishing an updated NuGet whenever the specification changes is relatively quick, as the build process can download the raw PDF from usb.org and generate new code automatically. Unfortunately, I do not monitor the specifications for updates, so please create an issue if you would like to prompt me to update - I usually respond quickly.

Usages

For convenience, the full HID Usage tables are exposed and described via the Usages, UsagePages and UsageTypes classes. These can be retrieved directly using the uint identifier or the convenience enums, all of which have the Page suffix.

// The enums can be cast to a Usage to retrieve full information about the Usage and its page.
Usage usage = ButtonPage.Button0;
Console.WriteLine($"Usage: {usage.Name}; Page: {usage.Page.Name}");
Product 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 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.1

    • No dependencies.

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
4.0.5 621 2/25/2024

Stable release.