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

# GameInputElementKind

> GameInputElementKind

# GameInputElementKind

列舉指定輸入的元素種類。

## 語法

```cpp theme={null}
enum GameInputElementKind
{
    GameInputElementKindNone   = 0,
    GameInputElementKindAxis   = 1,
    GameInputElementKindButton = 2,
    GameInputElementKindSwitch = 3
};
```

## 常數

| 常數 | 描述 |
| - | - |
| GameInputElementKindNone | 表示元素種類未知或沒有輸入。 |
| GameInputElementKindAxis | 表示元素是軸。 |
| GameInputElementKindButton | 表示元素是按鈕。 |
| GameInputElementKindSwitch | 表示元素是開關。 |

## 備註

[GameInputAxisMapping](/zh-TW/reference/input/gameinput/structs/gameinputaxismapping) 的成員。

[GameInputButtonMapping](/zh-TW/reference/input/gameinput/structs/gameinputbuttonmapping) 的成員。

## 需求

**標頭：** GameInput.h

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

## 另請參閱

[輸入 API 概觀](/zh-TW/build/core-features/common/input/overviews/input-overview)<br />
[GameInput](/zh-TW/reference/input/gameinput/gameinput_members)

## 版本歷程記錄

| 版本 | 變更 |
| - | - |
| **v3** | 推出。 |


## Related topics

- [GameInputElementKind](/reference/input/gameinput/enums/gameinputelementkind.md)
- [GameInputButtonMapping](/reference/input/gameinput/structs/gameinputbuttonmapping.md)
- [GameInputAxisMapping](/reference/input/gameinput/structs/gameinputaxismapping.md)
- [GameInput](/reference/input/gameinput/gameinput_members.md)
- [GameInputKind](/reference/input/gameinput/enums/gameinputkind.md)
