Sends a controller state report to the console.
public:
HRESULT SendGamepadReport(
UINT64 controllerId,
GAMEPAD_REPORT report
)
controllerId
Type: UINT64
The device identifier of this IXtfInputClient.
report
Type: GAMEPAD_REPORT
The controller state to report
Type: HRESULT
HRESULT success or error code.
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.
Header: Declared in xtfinput.h.
Library: Use xtfinput.lib.