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

# GameInputElementKind

> GameInputElementKind

# GameInputElementKind

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

## 語法

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

## 常數

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

## 備註

[GameInputAxisMapping](https://docs.xbox.com/zh-TW/reference/input/gameinput/structs/gameinputaxismapping.md) 的成員。

[GameInputButtonMapping](https://docs.xbox.com/zh-TW/reference/input/gameinput/structs/gameinputbuttonmapping.md) 的成員。

## 需求

**標頭：** GameInput.h

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

## 另請參閱

[輸入 API 概觀](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** | 推出。 |


## Related topics

- [GameInputButtonMapping](https://docs.xbox.com/zh-TW/reference/input/gameinput/structs/gameinputbuttonmapping.md)
- [GameInput API 成員](https://docs.xbox.com/zh-TW/reference/input/gameinput/gameinput_members.md)
- [GameInputAxisMapping](https://docs.xbox.com/zh-TW/reference/input/gameinput/structs/gameinputaxismapping.md)
- [GameInputKind](https://docs.xbox.com/zh-TW/reference/input/gameinput/enums/gameinputkind.md)
- [GetInputKind](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getinputkind.md)
