无法通过DirectInput检测操纵杆的Z轴 [英] can't detect the z axis of the joystick via directinput

查看:82
本文介绍了无法通过DirectInput检测操纵杆的Z轴的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做有关操纵杆的操作,我要做的就是访问x,y,z轴的值,现在我已经有了xy轴的值,但是我什至无法检测到z

I am doing something about the joystick, all I want to do is to access the value of the x,y,z axis, and now I have got the x y axis value already, but I can''t even detect z axis, and can''t get the value of z axis, what should i do?

推荐答案

Z轴绝对没有什么特别之处.

您的Z轴可以旋转,也可以不在您的设备中实现;或者您将Z轴与其他自由度混合在一起,例如方向舵(在DirectX输入库中具有不同的API(您使用DirectX吗?)).这可能是某些错误的结果.很难根据您的信息说其他话.

—SA
There is absolutely nothing special about Z axis.

You Z axis can be rotational or not implemented in your device; or you mixed up Z axis with another degree of freedom such as rudder (which has a different API in DirectX input library (do you use DirectX?)). It can be a result of some bug. It''s hard to say anything else based on your information.

—SA


这篇关于无法通过DirectInput检测操纵杆的Z轴的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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