IXtfInputClient::SendGamepadReport Method

Sends a controller state report to the console.

Syntax

public:
HRESULT SendGamepadReport(
         UINT64 controllerId,
         GAMEPAD_REPORT report
)  

Parameters

controllerId
Type: UINT64 

The device identifier of this IXtfInputClient.

report
Type: GAMEPAD_REPORT 

The controller state to report

Return value

Type: HRESULT 

HRESULT success or error code.

Remarks

To simulate a button press, call SendGamepadReport with the appropriate flag set in GAMEPAD_REPORT.Buttons, wait for 250ms, and then call SendGamepadReport again, with GAMEPAD_REPORT.Buttons set to GAMEPAD_BUTTONS::NONE.

If you call SendGamepadReport too frequently, the console will not respond to virtual controller state changes. Your code should not call SendGamepadReport more than once every 250ms.

Requirements

Header: Declared in xtfinput.h.

Library: Use xtfinput.lib.