Skip to main content

IXtfInputClient::DisconnectAllGamepads Method

Disconnects all virtual controllers simulated by this IXtfInputClient instance.

Syntax

Return value

Type: HRESULT HRESULT success or error code.

Remarks

Failure to disconnect a created gamepad will result in a memory leak. Call IXtfInputClient::DisconnectAllGamepads when virtual controller operations are complete to disconnect all controllers to avoid this. To disconnect a single virtual controller, call IXtfInputClient::DisconnectGamepad.

Requirements

Header: xtfinput.h Library: xtfinput.lib Supported platforms: Windows (for XBOX console tools)

See also

XtfInput
IXtfInputClient
IXtfInputClient::ConnectGamepad
IXtfInputClient::DisconnectGamepad
Last modified on August 20, 2026