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

# GameInputSwitchKind

> GameInputSwitchKind

# GameInputSwitchKind

枚举输入设备支持的开关类型。

<a id="syntaxSection" />

## 语法

```cpp theme={null}
enum GameInputSwitchKind
{
    GameInputUnknownSwitchKind = -1,
    GameInput2WaySwitch        =  0,
    GameInput4WaySwitch        =  1,
    GameInput8WaySwitch        =  2
};
```

<a id="constantsSection" />

## 常量

| 常量                         | 说明         |
| -------------------------- | ---------- |
| GameInputUnknownSwitchKind | 未识别的开关类型。  |
| GameInput2WaySwitch        | 具有两个位置的开关。 |
| GameInput4WaySwitch        | 具有四个位置的开关。 |
| GameInput8WaySwitch        | 具有八个位置的开关。 |

<a id="remarksSection" />

## 备注

此枚举在 [GameInputControllerSwitchInfo](/reference/input/gameinput/structs/gameinputcontrollerswitchinfo) 结构中使用。

有关 GameInput API 的中级和高级用例，请参阅 [高级 GameInput](/build/core-features/common/input/advanced/input-advanced-topics) 主题。

<a id="requirementsSection" />

## 要求

**标头：** GameInput.h

**支持的平台：** Windows、XBOX One 系列主机和 XBOX Series 主机

<a id="seealsoSection" />

## 另请参阅

[GameInput 概述](/build/core-features/common/input/overviews/input-overview)\
[GameInput](/reference/input/gameinput/gameinput_members)

## 版本历史

| 版本     | 变更  |
| ------ | --- |
| **v0** | 引入。 |


## Related topics

- [GameInput](/zh-CN/reference/input/gameinput/gameinput_members.md)
- [GameInputKind](/zh-CN/reference/input/gameinput/enums/gameinputkind.md)
- [GameInputRawDeviceItemCollectionKind](/zh-CN/reference/input/gameinput/deprecated/enums/gameinputrawdeviceitemcollectionkind.md)
- [GameInputEnumerationKind](/zh-CN/reference/input/gameinput/enums/gameinputenumerationkind.md)
- [GameInputKeyboardKind](/zh-CN/reference/input/gameinput/enums/gameinputkeyboardkind.md)
