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

语法

参数

此方法没有参数。

返回值

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

备注

输入报告是设备发送到系统的原始报告。当 GetSupportedInput 返回的值包含 GameInputKindRawDeviceReport 时,来自该设备的读数会携带原始输入报告,你可以通过调用 IGameInputReading::GetRawReport 检索该报告。 使用返回的值来确定传递给 GetInputReportInfo 的数组的大小。在设备保持连接期间,输入报告的数量不会更改。 在 GameInput v3 及更早版本中,此信息可从 IGameInputDevice::GetDeviceInfo 返回的 GameInputDeviceInfo 结构的 inputReportCount 成员中获取。

要求

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

另请参阅

GameInput 概述
GetInputReportInfo
GameInputRawDeviceReportInfo
IGameInputRawDeviceReport
IGameInputReading::GetRawReport
GameInput 高级主题
IGameInputDevice

版本历史

最后修改于 2026年11月6日