> ## 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.

# GameInputDeviceFamily

> GameInputDeviceFamily

# GameInputDeviceFamily

列舉輸入裝置的系列。

## 語法

```cpp theme={null}
enum GameInputDeviceFamily
{
    GameInputFamilyVirtual   = -1,
    GameInputFamilyUnknown   =  0,
    GameInputFamilyXboxOne   =  1,
    GameInputFamilyXbox360   =  2,
    GameInputFamilyHid       =  3,
    GameInputFamilyI8042     =  4,
    GameInputFamilyAggregate =  5,
};
```

## 常數

| 常數 | 描述 |
| - | - |
| GameInputFamilyVirtual | 代表平台上的虛擬化輸入裝置。 |
| GameInputFamilyUnknown | 代表未知的裝置系列。 |
| GameInputFamilyXboxOne | 代表由 XboxGIP 或 XInputHID 驅動程式管理的裝置 |
| GameInputFamilyXbox360 | 代表由 XUSB22 驅動程式管理的裝置 |
| GameInputFamilyHid | 代表一般人性化介面裝置 (HID)。 |
| GameInputFamilyI8042 | 代表透過 i8042 匯流排連接的輸入裝置。 |
| GameInputFamilyAggregate | 代表彙總輸入裝置。 |

## 備註

此列舉用於 [GameInputDeviceInfo](https://docs.xbox.com/zh-TW/reference/input/gameinput/structs/gameinputkeyboardinfo.md) 結構。`GameInputDeviceInfo` 由 [GetDeviceInfo](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getdeviceinfo.md) 函式使用。

如需詳細資訊，請參閱 [GameInput 裝置](https://docs.xbox.com/zh-TW/build/core-features/common/input/overviews/input-devices.md)。

## 需求

**標頭：** GameInput.h

**支援的平台：** Windows、XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[GameInput 概觀](https://docs.xbox.com/zh-TW/build/core-features/common/input/overviews/input-overview.md)\
[GameInput](https://docs.xbox.com/zh-TW/reference/input/gameinput/gameinput_members.md)

## 版本歷程記錄

| 版本 | 變更 |
| - | - |
| **v3** | **新增** `GameInputFamilyUnknown` (值 0)。在實作彙總裝置之後，將 `GameInputFamilyAggregate` 從值 0 **重新編號**為值 5。 |
| **v0** | 推出。 |

## 附錄：先前版本

### v0

```cpp theme={null}
enum GameInputDeviceFamily
{
    GameInputFamilyVirtual   = -1,
    GameInputFamilyAggregate =  0,
    GameInputFamilyXboxOne   =  1,
    GameInputFamilyXbox360   =  2,
    GameInputFamilyHid       =  3,
    GameInputFamilyI8042     =  4,
};
```


## Related topics

- [GameInputDeviceInfo](https://docs.xbox.com/zh-TW/reference/input/gameinput/structs/gameinputdeviceinfo.md)
- [GameInput API 成員](https://docs.xbox.com/zh-TW/reference/input/gameinput/gameinput_members.md)
- [TargetDeviceFamilyForDLC 元素 (MicrosoftGame.config)](https://docs.xbox.com/zh-TW/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-targetdevicefamilyfordlc.md)
- [GameInputDeviceStatus](https://docs.xbox.com/zh-TW/reference/input/gameinput/enums/gameinputdevicestatus.md)
- [GameInputDeviceCallback](https://docs.xbox.com/zh-TW/reference/input/gameinput/functions/gameinputdevicecallback.md)
