IXtfInputClient::DisconnectGamepad Method

Disconnects a specified virtual controller.

Syntax

public:
HRESULT DisconnectGamepad(
         UINT64 controllerId
)  

Parameters

controllerId
Type: UINT64 

The device identifier of this IXtfInputClient.

Return value

Type: HRESULT 

HRESULT success or error code.

Remarks

Call DisconnectGamepad when virtual controller operations are complete, to ensure that resources allocated for the virtual controller are freed. Every call to ConnectGamepad should be paired with a call to DisconnectGamepad.

Requirements

Header: Declared in xtfinput.h.

Library: Use xtfinput.lib.