語法
參數
此方法沒有參數。傳回值
類型: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
