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

# GameInputKind

> GameInputKind

# GameInputKind

有効な GameInput デバイスの種類を列挙します。

## 構文

```cpp theme={null}
enum GameInputKind
{
    GameInputKindUnknown          = 0x00000000,
    GameInputKindControllerAxis   = 0x00000002,
    GameInputKindControllerButton = 0x00000004,
    GameInputKindControllerSwitch = 0x00000008,
    GameInputKindController       = 0x0000000E,
    GameInputKindKeyboard         = 0x00000010,
    GameInputKindMouse            = 0x00000020,
    GameInputKindSensors          = 0x00000040,
    GameInputKindArcadeStick      = 0x00010000,
    GameInputKindFlightStick      = 0x00020000,
    GameInputKindGamepad          = 0x00040000,
    GameInputKindRacingWheel      = 0x00080000,
};
```

## 定数

| 定数 | 説明 |
| - | - |
| GameInputKindUnknown | 不明な入力タイプを示します。 |
| GameInputKindControllerAxis | スティックからのコントローラー入力を示します。 |
| GameInputKindControllerButton | ボタンからのコントローラー入力を示します。 |
| GameInputKindControllerSwitch | スイッチからのコントローラー入力を示します。 |
| GameInputKindController | 軸、ボタン、スイッチ入力の組み合わせを示します。 |
| GameInputKindKeyboard | キーボード入力を示します。 |
| GameInputKindMouse | マウス入力を示します。 |
| GameInputKindSensors | センサー入力を示します。 |
| GameInputKindArcadeStick | アーケード スティック入力を示します。 |
| GameInputKindFlightStick | フライト スティック入力を示します。 |
| GameInputKindGamepad | ゲームパッド入力を示します。 |
| GameInputKindRacingWheel | レーシング ホイール入力を示します。 |

## 解説

GameInputKind はフラグ値であり、複数のデバイスをフィルターするために組み合わせることができます。
[IGameInput\_GetCurrentReading](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinput/methods/igameinput_getcurrentreading.md) のパラメーター。
[IGameInputReading\_GetInputKind](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getinputkind.md) によって返されます。
[GameInputDeviceInfo](https://docs.xbox.com/ja-jp/reference/input/gameinput/structs/gameinputdeviceinfo.md) のメンバー。

## 要件

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

[Input API の概要](https://docs.xbox.com/ja-jp/build/core-features/common/input/overviews/input-overview.md)\
[GameInput](https://docs.xbox.com/ja-jp/reference/input/gameinput/gameinput_members.md)\
[IGameInput\_GetCurrentReading](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinput/methods/igameinput_getcurrentreading.md)\
[IGameInputReading\_GetInputKind](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getinputkind.md)\
[GameInputDeviceInfo](https://docs.xbox.com/ja-jp/reference/input/gameinput/structs/gameinputdeviceinfo.md)

## バージョン履歴

| バージョン | 変更内容 |
| - | - |
| **v3** | `GameInputKindUiNavigation` (0x01000000) と `GameInputKindRawDeviceReport` (0x00000001) を **削除**。 |
| **v2** | `GameInputKindSensors` (0x00000040) を **追加**。 |
| **v1** | `GameInputKindRawDeviceReport` (0x00000001)、`GameInputKindTouch` (0x00000100)、および `GameInputKindMotion` (0x00001000) を **削除**。 |
| **v0** | 導入されました。 |

## 付録: 以前のバージョン

### v0

```cpp theme={null}
enum GameInputKind
{
    GameInputKindUnknown          = 0x00000000,
    GameInputKindRawDeviceReport  = 0x00000001,
    GameInputKindControllerAxis   = 0x00000002,
    GameInputKindControllerButton = 0x00000004,
    GameInputKindControllerSwitch = 0x00000008,
    GameInputKindController       = 0x0000000E,
    GameInputKindKeyboard         = 0x00000010,
    GameInputKindMouse            = 0x00000020,
    GameInputKindTouch            = 0x00000100,
    GameInputKindMotion           = 0x00001000,
    GameInputKindArcadeStick      = 0x00010000,
    GameInputKindFlightStick      = 0x00020000,
    GameInputKindGamepad          = 0x00040000,
    GameInputKindRacingWheel      = 0x00080000,
    GameInputKindUiNavigation     = 0x01000000,
};
```

### v1

```cpp theme={null}
enum GameInputKind
{
    GameInputKindUnknown          = 0x00000000,
    GameInputKindControllerAxis   = 0x00000002,
    GameInputKindControllerButton = 0x00000004,
    GameInputKindControllerSwitch = 0x00000008,
    GameInputKindController       = 0x0000000E,
    GameInputKindKeyboard         = 0x00000010,
    GameInputKindMouse            = 0x00000020,
    GameInputKindArcadeStick      = 0x00010000,
    GameInputKindFlightStick      = 0x00020000,
    GameInputKindGamepad          = 0x00040000,
    GameInputKindRacingWheel      = 0x00080000,
    GameInputKindUiNavigation     = 0x01000000,
};
```

### v2

```cpp theme={null}
enum GameInputKind
{
    GameInputKindUnknown          = 0x00000000,
    GameInputKindControllerAxis   = 0x00000002,
    GameInputKindControllerButton = 0x00000004,
    GameInputKindControllerSwitch = 0x00000008,
    GameInputKindController       = 0x0000000E,
    GameInputKindKeyboard         = 0x00000010,
    GameInputKindMouse            = 0x00000020,
    GameInputKindSensors          = 0x00000040,
    GameInputKindArcadeStick      = 0x00010000,
    GameInputKindFlightStick      = 0x00020000,
    GameInputKindGamepad          = 0x00040000,
    GameInputKindRacingWheel      = 0x00080000,
    GameInputKindUiNavigation     = 0x01000000,
};
```


## Related topics

- [GetInputKind](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getinputkind.md)
- [GetSequenceNumber](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getsequencenumber.md)
- [IGameInput::CreateAggregateDevice](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinput/methods/igameinput_createaggregatedevice.md)
- [IGameInput::GetNextReading](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinput/methods/igameinput_getnextreading.md)
- [IGameInput::GetPreviousReading](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinput/methods/igameinput_getpreviousreading.md)
