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

# GAMEPAD_REPORT 構造体

> GAMEPAD_REPORT 構造体

# GAMEPAD\_REPORT 構造体

コントローラーの状態のスナップショット。

<a id="syntaxSection" />

## 構文

```cpp theme={null}
typedef struct GAMEPAD_REPORT {
    UINT16 Buttons;
    UINT16 LeftTrigger;
    UINT16 RightTrigger;
    INT16 LeftThumbstickX;
    INT16 LeftThumbstickY;
    INT16 RightThumbstickX;
    INT16 RightThumbstickY;
} GAMEPAD_REPORT, *PGAMEPAD_REPORT;  
```

<a id="ID4EG" />

##### メンバー

**Buttons**\
コントローラー上のボタンの状態を表す [GAMEPAD\_BUTTONS](/reference/tools/xtf/xtfinput/enumerations/GAMEPAD_BUTTONS-typedef-xtfinput-xbox-windows-t) フラグ値の組み合わせ。

**LeftTrigger**\
左トリガーが引かれている度合いを示す、0 から 1023 の間の値。

**RightTrigger**\
右トリガーが引かれている度合いを示す、0 から 1023 の間の値。

**LeftThumbstickX**\
左スティックの x 軸方向の位置を示す、-32768 から 32767 の間の値。

**LeftThumbstickY**\
左スティックの y 軸方向の位置を示す、-32768 から 32767 の間の値。

**RightThumbstickX**\
右スティックの x 軸方向の位置を示す、-32768 から 32767 の間の値。

**RightThumbstickY**\
右スティックの y 軸方向の位置を示す、-32768 から 32767 の間の値。

<a id="requirements" />

## 解説

**GAMEPAD\_REPORT** は、シミュレーションされたコントローラーの目的の状態を開発コンソールに送信するために使用されます。[IXtfInputClient::SendGamepadReport](/reference/tools/xtf/xtfinput/classes/IXtfInputClient/methods/sendgamepadreport-ixtfinputclient-xtfinput-xbox-windows-m) を使用して、コントローラーの個別の状態をコンソールに送信します。これを繰り返し行うことで、開発コンソール上で一連のコントローラー入力をシミュレーションできます。[IXtfInputClient::ConnectGamepad](/reference/tools/xtf/xtfinput/classes/IXtfInputClient/methods/connectgamepad-ixtfinputclient-xtfinput-xbox-windows-m) によって作成された仮想コントローラーにゲーム レポートを送信する必要があります。

## 要件

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

**ライブラリ:** xtfinput.lib

**対応プラットフォーム:** Windows (XBOX コンソール ツール用)

## 関連項目

[XtfInput](/reference/tools/xtf/xtfinput/xtfinput-xbox-microsoft-n)\
[IXtfInputClient::SendGamepadReport](/reference/tools/xtf/xtfinput/classes/IXtfInputClient/methods/sendgamepadreport-ixtfinputclient-xtfinput-xbox-windows-m)\
[IXtfInputClient::ConnectGamepad](/reference/tools/xtf/xtfinput/classes/IXtfInputClient/methods/connectgamepad-ixtfinputclient-xtfinput-xbox-windows-m)


## Related topics

- [GAMEPAD_BUTTONS 列挙型](/ja-jp/reference/tools/xtf/xtfinput/enumerations/GAMEPAD_BUTTONS-typedef-xtfinput-xbox-windows-t.md)
- [GAMEPAD_REPORT_EX](/ja-jp/reference/tools/xtf/xtfinput/structures/gamepad_report_ex.md)
- [IXtfInputClient::SendGamepadReport メソッド](/ja-jp/reference/tools/xtf/xtfinput/classes/IXtfInputClient/methods/sendgamepadreport-ixtfinputclient-xtfinput-xbox-windows-m.md)
- [XINPUT_GAMEPAD](/ja-jp/reference/input/xinputongameinput/structs/xinput_gamepad.md)
- [GameInput](/ja-jp/reference/input/gameinput/gameinput_members.md)
