IGameInputRawDeviceReport::ResetItemValue (v0)

注意

尚未实现此函数。

将设备报告项重置为其原始 “rest” 值。

语法

bool ResetItemValue(  
         uint32_t itemIndex  
)  

参数

itemIndex _In_
类型:uint32_t

设备报告缓冲区内报告项的索引。

返回值

类型:bool

成功时返回 true;否则返回 false。

备注

在通过 IGameInputDevice 接口上的 CreateRawDeviceReport 方法创建一个输出或功能报告时,该项的原始“其余”值就是其初始值。

报告项的有效索引基于 GameInputRawDeviceReportInfoitemCount 成员。

只能为输出和功能报告调用 SetItemValueResetItemValueResetAllItems 方法。 所有这些方法都很快返回,并且可以安全地从任何上下文调用。

要求

头文件:GameInput.h

库:xgameruntime.lib

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

另请参阅

GameInput 概述
IGameInputRawDeviceReport
GameInput