IXtfInputClient::DisconnectAllGamepads メソッド
この IXtfInputClient インスタンスでシミュレートされたすべての仮想コントローラーの接続を解除します。
構文
public:
HRESULT DisconnectAllGamepads()
戻り値
型: HRESULT
HRESULT 成功またはエラー コード。
解説
作成したゲームパッドの切断に失敗するとメモリ リークが発生します。
仮想コントローラーの操作が完了している場合はIXtfInputClient::DisconnectAllGamepads
を呼び出し、この問題を回避するためにすべてのコントローラーを切断します。
仮想コントローラーを 1 つだけ切断するには、IXtfInputClient::DisconnectGamepad を呼び出します。
要件
ヘッダー: xtfinput.h
ライブラリ: xtfinput.lib
サポートされているプラットフォーム: Windows (Xbox 本体ツール用)
関連項目
XtfInput
IXtfInputClient
IXtfInputClient::ConnectGamepad
IXtfInputClient::DisconnectGamepad