> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# IGameInputDevice::GetDeviceFamily

> デバイスが属する入力デバイス ファミリを取得します。

デバイスが属する入力デバイス ファミリを取得します。

## 構文

```cpp theme={null}
GameInputDeviceFamily GetDeviceFamily();
```

### パラメーター

このメソッドにはパラメーターがありません。

### 戻り値

型: [GameInputDeviceFamily](https://docs.xbox.com/ja-jp/reference/input/gameinput/enums/gameinputdevicefamily.md)

`GameInputFamilyXboxOne`、`GameInputFamilyHid`、`GameInputFamilyAggregate` などの入力デバイスのファミリ。ファミリを特定できない場合は `GameInputFamilyUnknown` を返します。

## 解説

デバイス ファミリは、GameInput がデバイスと通信する際に使用するドライバーまたはプロトコルを識別します。デバイスが提供する入力の種類を表すものではありません。入力の種類を判断するには、[IGameInputDevice::GetSupportedInput](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getsupportedinput.md) を使用します。

[IGameInput::CreateAggregateDevice](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinput/methods/igameinput_createaggregatedevice.md) で作成された集約デバイスは、`GameInputFamilyAggregate` を報告します。

デバイス ファミリは、デバイス オブジェクトの有効期間中は変化しません。

GameInput v3 以前では、この情報は [IGameInputDevice::GetDeviceInfo](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_getdeviceinfo.md) から返される [GameInputDeviceInfo](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/structs/gameinputdeviceinfo.md) 構造体の `deviceFamily` メンバーから取得できました。

## 要件

**ヘッダー:** GameInput.h

**ライブラリ:** gameinput.lib

**サポートされているプラットフォーム:** Windows、XBOX One ファミリー本体、XBOX Series 本体

## 関連項目

[GameInput の概要](https://docs.xbox.com/ja-jp/build/core-features/common/input/overviews/input-overview.md)\
[IGameInputDevice](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice.md)\
[GameInputDeviceFamily](https://docs.xbox.com/ja-jp/reference/input/gameinput/enums/gameinputdevicefamily.md)\
[IGameInputDevice::GetSupportedInput](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getsupportedinput.md)

## バージョン履歴

| バージョン | 変更内容 |
| - | - |
| **v4** | 導入されました。 |


## Related topics

- [GameInputDeviceFamily](https://docs.xbox.com/ja-jp/reference/input/gameinput/enums/gameinputdevicefamily.md)
- [IGameInputDevice::GetDeviceId](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getdeviceid.md)
- [IGameInputDevice::GetXInputDeviceIndex](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getxinputdeviceindex.md)
- [IGameInputDevice (インターフェイスの内容)](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice.md)
- [IGameInputDevice::GetDeviceRootId](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getdevicerootid.md)
