简体   繁体   English

在MonoGame的C#中使用DirectInput?

[英]Using DirectInput in C# with MonoGame?

I am trying to move on from previous game development languages and have stumbled upon an issue that I took for granted in my old languages. 我试图从以前的游戏开发语言继续前进,偶然发现了一个我用旧语言认为理所当然的问题。 I am trying to support DirectInput in C# with MonoGame as I feel comfortable with C# to use it as my primary game development language. 我正在尝试使用MonoGame支持C#中的DirectInput,因为我觉得C#习惯使用它作为我的主要游戏开发语言。

The issue is I don't know how to support DirectInput controllers and dancepads. 问题是我不知道如何支持DirectInput控制器和dancepad。 It's out of my comfort zone. 它超出了我的舒适区。 I have spent far too long looking for an answer via Coding Groups and Google to find no answers and a headache. 我花了很长时间寻找答案,通过Coding Groups和Google找不到答案和头痛。

Is it possible to support DirectInput controllers/dancepads in C# x MonoGame and if so how is it done? 是否有可能在C#x MonoGame中支持DirectInput控制器/跳板,如果是这样,它是如何完成的? I'd really appreciate any help on this one. 我真的很感激这方面的任何帮助。

DirectInput is no longer recommended . 不再推荐使用 DirectInput。

You can browse the repo here , mostly you will only ever need Keyboard and Gamepad. 你可以在这里浏览回购,大多数情况下你只需要键盘和游戏手柄。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM