如何连接操纵杆 [英] How to Interface Joystick

查看:89
本文介绍了如何连接操纵杆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我需要将操纵杆连接到我的计算机上,您能帮我吗?

Hi friends I need to interface Joystick to my computer can you please help me

推荐答案

是的.您需要使用Microsoft.DirectX.DirectInput.它需要了解相当先进的技术.而且文档也不完美.

主要问题是发现特定设备的功能并创建操纵杆事件,这不是一件小事,因为它基于线程和EventWaitHandle.

请查看我过去关于该主题的答案:
创建游戏杆事件? [无法检测到通过直接输入操纵杆的z轴 [
Yes. You need to use Microsoft.DirectX.DirectInput. It needs to understanding pretty advanced techniques; and the documentation is not perfect.

Main problem is discovery if the features of a particular device and creating joystick events, which is not a trivial thing, as it is based on threading and EventWaitHandle.

Please see my past answers on this topic:
Creating A Joystick Event?[^],
can''t detect the z axis of the joystick via directinput[^] (and discussion).

So, if you face problems you know who to ask. :-)

—SA


这篇关于如何连接操纵杆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆