语法
参数
此方法没有参数。返回值
类型:uint32_t 设备上力反馈马达的数量;如果设备不支持力反馈,则为 0。备注
力反馈马达通过从零开始的马达索引来寻址,该索引必须小于GetForceFeedbackMotorCount 返回的值。将马达索引传递给 CreateForceFeedbackEffect、IsForceFeedbackMotorPoweredOn 和 SetForceFeedbackMotorGain。使用 GetForceFeedbackMotorInfo 可了解每个马达支持哪些轴和效果类型。在设备保持连接期间,马达的数量不会更改。
在 GameInput v3 及更早版本中,此信息可从 IGameInputDevice::GetDeviceInfo 返回的 GameInputDeviceInfo 结构的 forceFeedbackMotorCount 成员中获取。
要求
头文件: GameInput.h 库: gameinput.lib 支持的平台: Windows、XBOX One 系列主机和 XBOX Series 主机另请参阅
GameInput 概述GetForceFeedbackMotorInfo
CreateForceFeedbackEffect
IsForceFeedbackMotorPoweredOn
SetForceFeedbackMotorGain
GameInput 上的力反馈
IGameInputDevice
