GamepadApi 1.0.1

dotnet add package GamepadApi --version 1.0.1
                    
NuGet\Install-Package GamepadApi -Version 1.0.1
                    
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="GamepadApi" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GamepadApi" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="GamepadApi" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add GamepadApi --version 1.0.1
                    
#r "nuget: GamepadApi, 1.0.1"
                    
#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.
#:package GamepadApi@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=GamepadApi&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=GamepadApi&version=1.0.1
                    
Install as a Cake Tool

# 🎮 GamepadApi

[![NuGet](https://img.shields.io/nuget/v/GamepadApi.svg)](https://www.nuget.org/packages/GamepadApi/)

[![NuGet Downloads](https://img.shields.io/nuget/dt/GamepadApi.svg)](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 Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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.

Version Downloads Last Updated
1.0.1 156 9/9/2025
1.0.0 151 9/8/2025