Disconnects a specified virtual controller.
public:
HRESULT DisconnectGamepad(
UINT64 controllerId
)
controllerId
Type: UINT64
The device identifier of this IXtfInputClient.
Type: HRESULT
HRESULT success or error code.
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.
Header: Declared in xtfinput.h.
Library: Use xtfinput.lib.