GameInputForceFeedbackConstantParams

定义力回馈效果的恒定物理方面。

语法

typedef struct GameInputForceFeedbackConstantParams {  
    GameInputForceFeedbackEnvelope envelope;  
    GameInputForceFeedbackMagnitude magnitude;  
} GameInputForceFeedbackConstantParams  

成员

envelope
类型:GameInputForceFeedbackEnvelope

力回馈效果的修改信封。

magnitude
类型:GameInputForceFeedbackMagnitude

力回馈效果施加的力大小。

备注

GameInputForceFeedbackConstantParamsGameInputForceFeedbackParams 结构的成员。

CreateForceFeedbackEffect 方法使用一组指定的参数将马达中的硬件资源分配给新的力回馈效果,并返回 IGameInputForceFeedbackEffect 实例来跟踪这些资源。 如果没有足够的硬件资源来创建该效果,或者如果硬件不支持请求的效果,将返回一个 HRESULT 错误。 力回馈效果由其参数定义,并存储在 GameInputForceFeedbackParams 结构中。

要求

头文件:GameInput.h

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

另请参阅

高级 GameInput 主题
GameInput 概述
GameInput