语法
参数
此方法没有参数。返回值
类型:GameInputDeviceFamily 输入设备所属的设备族,例如GameInputFamilyXboxOne、GameInputFamilyHid 或 GameInputFamilyAggregate。如果无法确定设备族,则返回 GameInputFamilyUnknown。
备注
设备族标识 GameInput 与设备通信时所使用的驱动程序或协议。它不描述设备提供的输入类型。若要确定输入类型,请使用 IGameInputDevice::GetSupportedInput。 通过 IGameInput::CreateAggregateDevice 创建的聚合设备报告GameInputFamilyAggregate。
设备族在设备对象的生存期内不会更改。
在 GameInput v3 及更早版本中,此信息可从 IGameInputDevice::GetDeviceInfo 返回的 GameInputDeviceInfo 结构的 deviceFamily 成员中获取。
要求
头文件: GameInput.h 库: gameinput.lib 支持的平台: Windows、XBOX One 系列主机和 XBOX Series 主机另请参阅
GameInput 概述IGameInputDevice
GameInputDeviceFamily
IGameInputDevice::GetSupportedInput
