C# wrapper around XInput, works with any Mono or .NET application (eg. Unity3D).
XInput is a DirectX API to manage the controllers connected to a PC (the same API is also used on Xbox 360). It allows an Xbox 360 controller to be used on a Windows PC.
XInput.NET is a .NET library which wraps the functions of XInput. It is different from what you can find inside SlimDX for example because it is designed to be pure CIL. That means you can use it in Unity3D Free (as well as Pro of course). The API was designed to be very similar (if not identical) to the GamePad class from XNA.
Pre-built binaries are available from the releases tab :
Some examples are available in this repository :
XInputDotNet.unityPackage
from the releases tabIf you get this error, or a similar one, make sure the settings for each file matches the settings below.
For Plugins\x86\XInputInterface.dll
For Plugins\x86_64\XInputInterface.dll
For Plugins\XInputDotNetPure.dll
NOTE: this is needed only for Unity 4, Unity 5 seems to have the right behaviour
[Project Folder]\Assets\Plugins\x86\XInputInterface.dll
to [Project Folder]\XInputInterface.dll
XInputInterface.dll
in the same folder the your game .exe fileNOTE : you may see this error message but it should still work as expected, the message won't appear in a Build