Xinput not working in Unity 5.3.x

Hi.
Game projects of mine that use the XInput library crash when I make a call to the xinput library. This seems to be an issue in the new unity version.

I have tried downloading a new copy of xinput from here
GitHub - speps/XInputDotNet: C# wrapper around XInput, works with any Mono or .NET application (eg. Unity3D) and opening the demo project.

When I run the project I get the following error
NullReferenceException: Object reference not set to an instance of an object
XInputDotNetPure.GamePad.GetState (PlayerIndex playerIndex, GamePadDeadZone deadZone)
XInputDotNetPure.GamePad.GetState (PlayerIndex playerIndex)
XInputTestCS.Update () (at Assets/XInputDotNet/Examples/XInputTestCS.cs:31)

I’m assuming there is some fix or work around.

I have the same problem, did you manage to find a fix?

for some reason they do not work. but the developer took out a unitypackage for unity 5 which if it works. Tested with unity 5.3.6f1

2727940–193879–XInputDotNet-v2015.03-1.unityPackage (78.8 KB)