GamepadApi 1.0.1
dotnet add package GamepadApi --version 1.0.1
NuGet\Install-Package GamepadApi -Version 1.0.1
<PackageReference Include="GamepadApi" Version="1.0.1" />
<PackageVersion Include="GamepadApi" Version="1.0.1" />
<PackageReference Include="GamepadApi" />
paket add GamepadApi --version 1.0.1
#r "nuget: GamepadApi, 1.0.1"
#:package GamepadApi@1.0.1
#addin nuget:?package=GamepadApi&version=1.0.1
#tool nuget:?package=GamepadApi&version=1.0.1
# 🎮 GamepadApi
[](https://www.nuget.org/packages/GamepadApi/)
[](https://www.nuget.org/packages/GamepadApi/)
A simple, lightweight **.NET Gamepad API** for Windows using **XInput**.
Supports up to 4 controllers with normalized input, deadzones, vibration, and event-based state updates.
## ✨ Features
- 🎮 Supports **up to 4 XInput gamepads**
- 🕹️ Normalized **sticks** (Vector2
) and **triggers** (float
)
- 🛑 Configurable **deadzones** (stick radial, trigger threshold)
- 🔔 Events: DeviceConnected
, DeviceDisconnected
, StateChanged
- 💥 **Vibration support** (left + right motor)
- 🪶 Lightweight, no dependencies (except System.Numerics
for Vector2
)
## 📦 Installation
Install via NuGet:
dotnet add package GamepadApi
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0-windows7.0 is compatible. net9.0-windows was computed. net10.0-windows was computed. |
-
net8.0-windows7.0
- 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.