IXtfInputClient::DisconnectAllGamepads 方法
中斷此 IXtfInputClient 執行個體所模擬之所有虛擬控制器的連線。語法
傳回值
類型:HRESULT HRESULT 成功或錯誤碼。備註
若未中斷已建立之遊戲控制器的連線,將會導致記憶體流失。 為避免此情況,請在虛擬控制器作業完成時呼叫IXtfInputClient::DisconnectAllGamepads,以中斷所有控制器的連線。
若要中斷單一虛擬控制器的連線,請呼叫 IXtfInputClient::DisconnectGamepad。
需求
標頭: xtfinput.h 程式庫: xtfinput.lib 支援的平台: Windows (適用於 XBOX 主機工具)另請參閱
XtfInputIXtfInputClient
IXtfInputClient::ConnectGamepad
IXtfInputClient::DisconnectGamepad
