跳转到主要内容
获取设备定义的原始输出报告的数量。

语法

参数

此方法没有参数。

返回值

类型:uint32_t 设备定义的输出报告的数量;如果设备没有输出报告或不公开原始报告,则为 0。

备注

输出报告是应用程序可以发送到设备的原始报告。若要发送输出报告,请使用报告 ID 和 GameInputRawOutputReport 调用 CreateRawDeviceReport 来创建报告,使用 IGameInputRawDeviceReport::SetRawData 填充该报告,然后将其传递给 SendRawDeviceOutput。 使用返回的值来确定传递给 GetOutputReportInfo 的数组的大小。在设备保持连接期间,输出报告的数量不会更改。 在 GameInput v3 及更早版本中,此信息可从 IGameInputDevice::GetDeviceInfo 返回的 GameInputDeviceInfo 结构的 outputReportCount 成员中获取。

要求

头文件: GameInput.h 库: gameinput.lib 支持的平台: Windows、XBOX One 系列主机和 XBOX Series 主机

另请参阅

GameInput 概述
GetOutputReportInfo
GameInputRawDeviceReportInfo
IGameInputRawDeviceReport
CreateRawDeviceReport
SendRawDeviceOutput
GameInput 高级主题
IGameInputDevice

版本历史

最后修改于 2026年11月6日