Visual Studio上的Monogame插件

问题描述 投票:0回答:2

我在视觉工作室MonoGame Windows Project中创建了一个全新的文件。然后我运行它,我得到一个即时错误。问题是什么?错误状态:SharpDX.XInput.dll中出现未处理的“System.DllNotFoundException”类型异常

其他信息:无法加载DLL'xinput1_3.dll':找不到指定的模块。 (来自HRESULT的异常:0x8007007E)

     if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape))
          //this is what is causing the error
c# monogame visual-studio-setup
2个回答
1
投票

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


0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.