nameishi nameishi - 9 months ago 65
C# Question

Which plug in should I use to allow Monogame on Visual Studios for 2D games

I create a brand new file in visual studios, MonoGame Windows Project. Then I run it and I get an instant error. What is the problem? Error states:
An unhandled exception of type 'System.DllNotFoundException' occurred in SharpDX.XInput.dll

Additional information: Unable to load DLL 'xinput1_3.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape))
//this is what is causing the error

Answer Source

Adding DirectXEnd plug in solved the problem. Thanks