GameInputHapticFeedbackMotorInfo

说明输入设备中的触觉回馈马达。

语法

typedef struct GameInputHapticFeedbackMotorInfo {  
    GameInputRumbleMotors mappedRumbleMotor;  
    GameInputLocation location;  
    uint32_t locationId;  
    uint32_t waveformCount;  
    GameInputHapticWaveformInfo const * waveformInfo;  
} GameInputHapticFeedbackMotorInfo  

成员

mappedRumbleMotor
类型:GameInputRumbleMotors

映射到触觉反馈马达的隆隆声马达。 如果设备没有隆隆声马达,并且游戏调用IGameInputDevice::SetRumbleState,则 GameInput 可以尝试将隆隆声马达强度应用于触觉反馈马达。

location
类型:GameInputLocation

触觉回馈马达的位置。

locationId
类型:uint32_t

触觉回馈马达的位置 ID。

waveformCount
类型:uint32_t

触觉回馈马达的波形计数。

waveformInfo
类型:GameInputHapticWaveformInfo const *

用于波形说明数组的指针。

备注

此结构在 GameInputDeviceInfo 结构中使用。 有关更多信息,请参阅 GetDeviceInfo

若要将波形发送到触觉反馈马达,请使用 IGameInputDevice::SetHapticMotorState

要求

头文件:GameInput.h

支持平台:Windows、Xbox One 系列主机和 Xbox Series 主机

另请参阅

GameInput 概述
GameInput