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

# GameInputSwitchPosition

> GameInputSwitchPosition

# GameInputSwitchPosition

入力デバイス上のスイッチの位置を列挙します。

## 構文

```cpp theme={null}
enum GameInputSwitchPosition
{
    GameInputSwitchCenter    = 0,
    GameInputSwitchUp        = 1,
    GameInputSwitchUpRight   = 2,
    GameInputSwitchRight     = 3,
    GameInputSwitchDownRight = 4,
    GameInputSwitchDown      = 5,
    GameInputSwitchDownLeft  = 6,
    GameInputSwitchLeft      = 7,
    GameInputSwitchUpLeft    = 8
};
```

## 定数

| 定数 | 説明 |
| - | - |
| GameInputSwitchCenter | スイッチが中央位置にあります。 |
| GameInputSwitchUp | スイッチが上位置にあります。 |
| GameInputSwitchUpRight | スイッチが右上位置にあります。 |
| GameInputSwitchRight | スイッチが右位置にあります。 |
| GameInputSwitchDownRight | スイッチが右下位置にあります。 |
| GameInputSwitchDown | スイッチが下位置にあります。 |
| GameInputSwitchDownLeft | スイッチが左下位置にあります。 |
| GameInputSwitchLeft | スイッチが左位置にあります。 |
| GameInputSwitchUpLeft | スイッチが左上位置にあります。 |

## 解説

すべてのスイッチがそれぞれの値をサポートするわけではありません。

この列挙型は [GameInputFlightStickState](https://docs.xbox.com/ja-jp/reference/input/gameinput/structs/gameinputflightstickstate.md) 構造体および [IGameInputReading::GetControllerSwitchState](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrollerswitchstate.md) メソッドで使用されます。

GameInput API の中級および上級の使用例については、[高度な GameInput](https://docs.xbox.com/ja-jp/build/core-features/common/input/advanced/input-advanced-topics.md) トピックを参照してください。

## 要件

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

**サポートされているプラットフォーム:** Windows、XBOX One ファミリ本体、および XBOX Series 本体

## 関連項目

[GameInput の概要](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)

## バージョン履歴

| バージョン | 変更内容 |
| - | - |
| **v0** | 導入されました。 |


## Related topics

- [GetControllerAxisState](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrolleraxisstate.md)
- [GameInput API メンバー](https://docs.xbox.com/ja-jp/reference/input/gameinput/gameinput_members.md)
- [GameInputSwitchKind](https://docs.xbox.com/ja-jp/reference/input/gameinput/enums/gameinputswitchkind.md)
- [GetControllerSwitchCount](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrollerswitchcount.md)
- [GetControllerSwitchState](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrollerswitchstate.md)
