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

# IXtfInputClient::SendGamepadReportEx

> IXtfInputClient::SendGamepadReportEx

# IXtfInputClient::SendGamepadReportEx

Sends a controller state report to the console.

## Syntax

```cpp theme={null}
HRESULT SendGamepadReportEx(  
         UINT64 controllerId,  
         GAMEPAD_REPORT_EX report  
)  
```

### Parameters

*controllerId*   \
Type: UINT64

The device identifier of this [IXtfInputClient](/reference/tools/xtf/xtfinput/classes/IXtfInputClient/ixtfinputclient-xtfinput-xbox-windows-t).\
The controller ID is the controller ID returned by [IXtfInputClient::ConnectGamepad](/reference/tools/xtf/xtfinput/classes/IXtfInputClient/methods/connectgamepad-ixtfinputclient-xtfinput-xbox-windows-m).

*report*   \
Type: [GAMEPAD\_REPORT\_EX](/reference/tools/xtf/xtfinput/structures/gamepad_report_ex)

The controller state to report.

### Return value

Type: HRESULT

HRESULT success or error code.

## Remarks

The **SendGameReportEx** method sends a controller state represented by a [GAMEPAD\_REPORT\_EX](/reference/tools/xtf/xtfinput/structures/gamepad_report_ex) to a virtual controller created by [IXtfInputClient::ConnectGamepad](/reference/tools/xtf/xtfinput/classes/IXtfInputClient/methods/connectgamepad-ixtfinputclient-xtfinput-xbox-windows-m). You will need to send multiple states to simulate a single button press and release. To simulate a button press, call **SendGamepadReportEx** with the appropriate flag set in [GAMEPAD\_REPORT\_EX.Buttons](/reference/tools/xtf/xtfinput/structures/gamepad_report_ex), and then call **SendGamepadReportEx** again, with [GAMEPAD\_REPORT\_EX.Buttons](/reference/tools/xtf/xtfinput/structures/gamepad_report_ex) set to [GAMEPAD\_BUTTONS::NONE](/reference/tools/xtf/xtfinput/enumerations/GAMEPAD_BUTTONS-typedef-xtfinput-xbox-windows-t).

**SendGamepadReportEx** can be called at 60Hz to mimic data coming from a physical controller.

## Requirements

**Header:** XtfInput.h

**Library:** xtfinput.lib

**Supported platforms:** Windows (for XBOX console tools)

## See also

[XtfInput](/reference/tools/xtf/xtfinput/xtfinput-xbox-microsoft-n)\
[GAMEPAD\_REPORT\_EX](/reference/tools/xtf/xtfinput/structures/gamepad_report_ex)\
[IXtfInputClient::ConnectGamepad](/reference/tools/xtf/xtfinput/classes/IXtfInputClient/methods/connectgamepad-ixtfinputclient-xtfinput-xbox-windows-m)


## Related topics

- [IXtfInputClient::SendGamepadReportWithAudio](/reference/tools/xtf/xtfinput/classes/IXtfInputClient/methods/ixtfinputclient_sendgamepadreportwithaudio.md)
- [IXtfInputClient::SendGamepadReport Method](/reference/tools/xtf/xtfinput/classes/IXtfInputClient/methods/sendgamepadreport-ixtfinputclient-xtfinput-xbox-windows-m.md)
- [IXtfInputClient::ConnectGamepad Method](/reference/tools/xtf/xtfinput/classes/IXtfInputClient/methods/connectgamepad-ixtfinputclient-xtfinput-xbox-windows-m.md)
- [IXtfInputClient::DisconnectGamepad Method](/reference/tools/xtf/xtfinput/classes/IXtfInputClient/methods/disconnectgamepad-ixtfinputclient-xtfinput-xbox-windows-m.md)
- [IXtfInputClient::DisconnectAllGamepads Method](/reference/tools/xtf/xtfinput/classes/IXtfInputClient/methods/disconnectallgamepads-ixtfinputclient-xtfinput-xbox-windows-m.md)
