C# 游戏手柄输入/输出类
我正在尝试设计一个小程序,从 USB 转换器获取两个 PS2 控制器的输入。我想从所有按钮获取输入,包括按下(L3,R3)中的操纵杆、操纵杆位置以及模拟是否打开。我还想将反馈发送回控制器并运行两个振动电机,并可能控制 LED 进行模拟。
我正在寻找的是一个可以完成这一切的 C# 源代码文件,或者是一个已编译的一体化 DLL,甚至是一个初学者教程。
I am trying to design a little program that takes input from two PS2 controllers from a USB converter. I would like to take input from all the buttons including pressing the joysticks in (L3, R3), and the joysticks position, and whether the analog is on. I would also like to send feedback back to the controllers and run the two vibration motors and possibly control the LED for analog.
What I'm looking for is a C# source code file that can do it all or an already compiled all-in-one DLL or even a beginners tutorial.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能需要开发自己的 .NET 库来与 PlayStation 控制器交互,这可能会非常复杂。这篇文章可以帮助您入门。祝你好运!
You will likely need to develop a .NET library of your own to interface with a PlayStation controller, and this could get pretty involved. This article can help get you started. Good luck!
看看这个项目:
http://www.codeproject.com/Articles/16704 /Interface-with-a-Joystick-using-C
另请阅读:
http://213.55.83.214:8181/Computer%20Science/Programming/01428.pdf
不是整本书,而是与您需要的相关的部件。
Check out this project:
http://www.codeproject.com/Articles/16704/Interfacing-with-a-Joystick-using-C
Also read:
http://213.55.83.214:8181/Computer%20Science/Programming/01428.pdf
Not the entire book but parts that are relevant for what you need.