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

# XGameStreamingGamepadPhysicality

> XGameStreamingGamepadPhysicality

# XGameStreamingGamepadPhysicality

標準的な XBOX Wireless Controller のすべてのボタン、スティック、トリガーの物理性マッピング。任意のボタン/スティック/トリガーについて、物理性は unknown、physical、virtual、または両方となる場合があります。

## Syntax

```cpp theme={null}
enum class XGameStreamingGamepadPhysicality  : uint64_t  
{  
    None = 0x0000000000000000,  
    DPadUpPhysical = 0x0000000000000001,  
    DPadDownPhysical = 0x0000000000000002,  
    DPadLeftPhysical = 0x0000000000000004,  
    DPadRightPhysical = 0x0000000000000008,  
    MenuPhysical = 0x0000000000000010,  
    ViewPhysical = 0x0000000000000020,  
    LeftThumbstickPhysical = 0x0000000000000040,  
    RightThumbstickPhysical = 0x0000000000000080,  
    LeftShoulderPhysical = 0x0000000000000100,  
    RightShoulderPhysical = 0x0000000000000200,  
    APhysical = 0x0000000000001000,  
    BPhysical = 0x0000000000002000,  
    XPhysical = 0x0000000000004000,  
    YPhysical = 0x0000000000008000,  
    LeftTriggerPhysical = 0x0000000000010000,  
    RightTriggerPhysical = 0x0000000000020000,  
    LeftThumbstickXPhysical = 0x0000000000040000,  
    LeftThumbstickYPhysical = 0x0000000000080000,  
    RightThumbstickXPhysical = 0x0000000000100000,  
    RightThumbstickYPhysical = 0x0000000000200000,  
    ButtonsPhysical = 0x000000000000F3FF,  
    AnalogsPhysical = 0x00000000003F0000,  
    AllPhysical = 0x00000000003FF3FF,  
    DPadUpVirtual = 0x0000000100000000,  
    DPadDownVirtual = 0x0000000200000000,  
    DPadLeftVirtual = 0x0000000400000000,  
    DPadRightVirtual = 0x0000000800000000,  
    MenuVirtual = 0x0000001000000000,  
    ViewVirtual = 0x0000002000000000,  
    LeftThumbstickVirtual = 0x0000004000000000,  
    RightThumbstickVirtual = 0x0000008000000000,  
    LeftShoulderVirtual = 0x0000010000000000,  
    RightShoulderVirtual = 0x0000020000000000,  
    AVirtual = 0x0000100000000000,  
    BVirtual = 0x0000200000000000,  
    XVirtual = 0x0000400000000000,  
    YVirtual = 0x0000800000000000,  
    LeftTriggerVirtual = 0x0001000000000000,  
    RightTriggerVirtual = 0x0002000000000000,  
    LeftThumbstickXVirtual = 0x0004000000000000,  
    LeftThumbstickYVirtual = 0x0008000000000000,  
    RightThumbstickXVirtual = 0x0010000000000000,  
    RightThumbstickYVirtual = 0x0020000000000000,  
    ButtonsVirtual = 0x0000F3FF00000000,  
    AnalogsVirtual = 0x003F000000000000,  
    AllVirtual = 0x003FF3FF00000000,  
}  
```

## Constants

| 定数 | 説明 |
| - | - |
| None | ゲームパッド ボタンなし |
| DPadUpPhysical | 物理ゲームパッドの方向パッドの上ボタン |
| DPadDownPhysical | 物理ゲームパッドの方向パッドの下ボタン |
| DPadLeftPhysical | 物理ゲームパッドの方向パッドの左ボタン |
| DPadRightPhysical | 物理ゲームパッドの方向パッドの右ボタン |
| MenuPhysical | 物理ゲームパッドのメニュー ボタン |
| ViewPhysical | 物理ゲームパッドのビュー ボタン |
| LeftThumbstickPhysical | 物理ゲームパッドの左スティック押し込みボタン |
| RightThumbstickPhysical | 物理ゲームパッドの右スティック押し込みボタン |
| LeftShoulderPhysical | 物理ゲームパッドの左ショルダー ボタン |
| RightShoulderPhysical | 物理ゲームパッドの右ショルダー ボタン |
| APhysical | 物理ゲームパッドの A ボタン |
| BPhysical | 物理ゲームパッドの B ボタン |
| XPhysical | 物理ゲームパッドの X ボタン |
| YPhysical | 物理ゲームパッドの Y ボタン |
| LeftTriggerPhysical | 物理ゲームパッドの左トリガー |
| RightTriggerPhysical | 物理ゲームパッドの右トリガー |
| LeftThumbstickXPhysical | 物理ゲームパッドの左スティックの水平位置 |
| LeftThumbstickYPhysical | 物理ゲームパッドの左スティックの垂直位置 |
| RightThumbstickXPhysical | 物理ゲームパッドの右スティックの水平位置 |
| RightThumbstickYPhysical | 物理ゲームパッドの右スティックの垂直位置 |
| ButtonsPhysical | すべてのボタンが物理 |
| AnalogsPhysical | すべてのアナログ入力が物理 |
| AllPhysical | すべての入力が物理 |
| DPadUpVirtual | 仮想ゲームパッドの方向パッドの上ボタン |
| DPadDownVirtual | 仮想ゲームパッドの方向パッドの下ボタン |
| DPadLeftVirtual | 仮想ゲームパッドの方向パッドの左ボタン |
| DPadRightVirtual | 仮想ゲームパッドの方向パッドの右ボタン |
| MenuVirtual | 仮想ゲームパッドのメニュー ボタン |
| ViewVirtual | 仮想ゲームパッドのビュー ボタン |
| LeftThumbstickVirtual | 仮想ゲームパッドの左スティック押し込みボタン |
| RightThumbstickVirtual | 仮想ゲームパッドの右スティック押し込みボタン |
| LeftShoulderVirtual | 仮想ゲームパッドの左ショルダー ボタン |
| RightShoulderVirtual | 仮想ゲームパッドの右ショルダー ボタン |
| AVirtual | 仮想ゲームパッドの A ボタン |
| BVirtual | 仮想ゲームパッドの B ボタン |
| XVirtual | 仮想ゲームパッドの X ボタン |
| YVirtual | 仮想ゲームパッドの Y ボタン |
| LeftTriggerVirtual | 仮想ゲームパッドの左トリガー |
| RightTriggerVirtual | 仮想ゲームパッドの右トリガー |
| LeftThumbstickXVirtual | 仮想ゲームパッドの左スティックの水平位置 |
| LeftThumbstickYVirtual | 仮想ゲームパッドの左スティックの垂直位置 |
| RightThumbstickXVirtual | 仮想ゲームパッドの右スティックの水平位置 |
| RightThumbstickYVirtual | 仮想ゲームパッドの右スティックの垂直位置 |
| ButtonsVirtual | すべてのボタンが仮想 |
| AnalogsVirtual | すべてのアナログ入力が仮想 |
| AllVirtual | すべての入力が仮想 |

## Remarks

ゲームは [XGameStreamingGamepadPhysicality](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/enums/xgamestreaminggamepadphysicality.md) を使用して、`IGameInputReading` に物理コントローラー、仮想タッチ コントローラー、またはその両方からの入力が含まれているかどうかを把握できます。

現在サポートされているのはゲームパッドの読み取りのみです。

複数の値を表すためにフラグを組み合わせることができます。

`AllPhysical` または `AllVirtual` の値を使用して、すべての入力が特定のタイプであるかどうかを識別できます。これは、プレイヤーにどのビジュアル ヒントを提供するかといったゲームプレイの決定に使用できます。

## Requirements

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

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

## See also

[XGameStreamingGetGamepadPhysicality](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreaminggetgamepadphysicality.md)\
[XGameStreaming](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/xgamestreaming_members.md)


## Related topics

- [XGameStreamingGetGamepadPhysicality](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreaminggetgamepadphysicality.md)
- [XGameStreaming (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/xgamestreaming_members.md)
- [GAMEPAD_VIBRATION](https://docs.xbox.com/ja-jp/reference/tools/xtf/xtfinput/structures/gamepad_vibration.md)
- [XINPUT_GAMEPAD](https://docs.xbox.com/ja-jp/reference/input/xinputongameinput/structs/xinput_gamepad.md)
- [XGameStreamingGetAssociatedFrame](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreaminggetassociatedframe.md)
