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.