如何访问USB脚踏板/游戏手柄 [英] How to access USB Foot-pedal/Game-pad
本文介绍了如何访问USB脚踏板/游戏手柄的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在为我的应用程序使用三键脚踏板,并希望从设备中捕获按键事件。我找不到办法做到这一点。该设备与其他已安装的应用程序一起正常运行
DirectX是唯一的方式还是有其他选择。
我搜索了很多对于代码示例,但找不到合适的解决方案。如果我能得到一些帮助会很有帮助。
代码示例会真正促进原因。
谢谢和问候。
解决方案
从脚踏板制造商处获取SDK。有些制造商甚至提供C#样品。
如果你不能得到它,你必须查看设备管理器:如果是HID设备,你可以将它与HID库一起使用
I'm using a three key foot pedal for my application and want to capture key press events from the device. I couldn't find a way to do it. The device is working fine with other installed applications.
Is DirectX is the only way or there are other options.
I've searched a lot for the code samples but couldn't find proper solution. It would be helpful if I could get some assistance.
Code samples would really boost the cause.
Thanks & regards.
解决方案
Get the SDK from the manufacturer of the foot pedal. Some of the manufacturers even provide C# samples.
If you cannot get it, you have to look into the device manager: in case of an HID device, you might be able to use it with an HID library.
这篇关于如何访问USB脚踏板/游戏手柄的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文