Skip to main content

IXtfInputClient::DisconnectAllGamepads メソッド

この IXtfInputClient インスタンスによってシミュレーションされているすべての仮想コントローラーを切断します。

構文

戻り値

型: HRESULT HRESULT の成功またはエラー コード。

解説

作成されたゲームパッドを切断しないと、メモリ リークが発生します。 これを回避するため、仮想コントローラー操作の完了時に IXtfInputClient::DisconnectAllGamepads を呼び出して、すべてのコントローラーを切断してください。 1 つの仮想コントローラーを切断するには、IXtfInputClient::DisconnectGamepad を呼び出します。

要件

ヘッダー: xtfinput.h ライブラリ: xtfinput.lib 対応プラットフォーム: Windows (XBOX コンソール ツール用)

関連項目

XtfInput
IXtfInputClient
IXtfInputClient::ConnectGamepad
IXtfInputClient::DisconnectGamepad
最終更新日 2026年8月24日