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

# GameInputSwitchPosition

> GameInputSwitchPosition

# GameInputSwitchPosition

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

<a id="syntaxSection" />

## 構文

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

<a id="constantsSection" />

## 定数

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

<a id="remarksSection" />

## 解説

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

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

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

- [IGameInputReading::GetControllerAxisState](/ja-jp/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrolleraxisstate.md)
- [GameInput](/ja-jp/reference/input/gameinput/gameinput_members.md)
- [GameInputSwitchKind](/ja-jp/reference/input/gameinput/enums/gameinputswitchkind.md)
- [IGameInputReading::GetControllerSwitchCount](/ja-jp/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrollerswitchcount.md)
- [IGameInputReading::GetControllerSwitchState](/ja-jp/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrollerswitchstate.md)
