gpt4 book ai didi

c# - 从 PS3 Controller 获取输入

转载 作者:行者123 更新时间:2023-11-30 12:46:30 26 4
gpt4 key购买 nike

我想将 PS3 Controller 连接到我的计算机(使用 USB 数据线)并用它来控制某些东西(例如游戏)。使用 c#(或 c/c++)

有人能给我指出正确的方向吗(也许是教程)?有没有我可以使用的好库?

我不需要振动之类的花哨的东西;只需按钮即可。

最佳答案

这应该是您的正确起点:

An article on using the USB Human Interface Device api for reading a wired PS3 controller including motion.

http://www.codeproject.com/Articles/23634/Wired-PS-Six-Axis-Controller-Using-USB-HID-as-Inp

关于c# - 从 PS3 Controller 获取输入,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19986839/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com