IGameInputForceFeedbackEffect::GetDevice (v0)

检索与力回馈效果相关联的设备。

语法

void GetDevice(  
         IGameInputDevice** device  
)  

参数

device _Outptr_
类型:IGameInputDevice**

将 device output device 参数设置为 nullptr。 该方法返回与力回馈效果相关联的设备。

返回值

类型:void

无返回。

备注

IGameInputForceFeedbackEffect::GetDevice 方法检索与力回馈效果相关联的设备。 IGameInputDevice 对象表示输入设备。 IGameInputDevice 接口中的方法可用于识别游戏输入设备并且与游戏输入设备进行交互。 可以查询与设备有关的信息,例如其类型、功能和电池状态。 也可以激活设备特定的硬件,例如触觉回馈和力回馈。 有关详细信息,请参阅高级 GameInput 主题

要求

头文件:GameInput.h

库:xgameruntime.lib

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

另请参阅

GameInput 概述
IGameInputForceFeedbackEffect