DirectInputWatcher.Configuration
1.1.0
dotnet add package DirectInputWatcher.Configuration --version 1.1.0
NuGet\Install-Package DirectInputWatcher.Configuration -Version 1.1.0
<PackageReference Include="DirectInputWatcher.Configuration" Version="1.1.0" />
<PackageVersion Include="DirectInputWatcher.Configuration" Version="1.1.0" />
<PackageReference Include="DirectInputWatcher.Configuration" />
paket add DirectInputWatcher.Configuration --version 1.1.0
#r "nuget: DirectInputWatcher.Configuration, 1.1.0"
#:package DirectInputWatcher.Configuration@1.1.0
#addin nuget:?package=DirectInputWatcher.Configuration&version=1.1.0
#tool nuget:?package=DirectInputWatcher.Configuration&version=1.1.0
DirectInputWatcher.Configuration
IConfiguration binding for DirectInputWatcher — register
the controller watcher straight from appsettings.json or any other .NET configuration provider.
The core DirectInputWatcher package deliberately takes no configuration dependency, so this one
exists to add a single overload. If you configure the watcher in code, you do not need it.
Usage
using DirectInputWatcher.Configuration;
services.AddLogging();
services.AddDirectInputWatcher(configuration);
Settings are read from the DirectInputWatcher section:
{
"DirectInputWatcher": {
"PollFrequency": 15,
"AxisChangeThreshold": 0.25,
"AxisResetThreshold": 0.20,
"AxisBaselineCalibrationDuration": "00:00:01",
"DeviceCachePath": "C:\\ProgramData\\MyApp\\devices.json",
"Whitelist": [ "346E:0003" ],
"Blacklist": []
}
}
An optional setup action runs after binding, so it overrides anything the configuration supplied:
services.AddDirectInputWatcher(configuration, options => options.PollFrequency = 30);
Everything else — what each option means, the Lifecycle and Inputs event streams, and how the
watcher behaves at runtime — is documented in the
DirectInputWatcher README.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-windows7.0 is compatible. |
-
net10.0-windows7.0
- DirectInputWatcher (>= 1.1.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.11)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.11)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.11)
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.1.0 | 87 | 9/8/2026 |