0

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
4

2 回答 2

1

我通过以下链接下载和安装 DirectX 最终用户运行时(2010 年 6 月)设法解决了这个问题:https ://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF -AD2AE20B6B14/directx_Jun2010_redist.exe

于 2016-04-20T07:49:57.783 回答
0

添加 DirectXEnd 插件解决了这个问题。谢谢

于 2016-03-02T17:44:00.553 回答