IHidGameControllerInputSink 介面

定義

定義自訂 HID (Human Interface Device) 控制器介面介面所需的方法。

public interface class IHidGameControllerInputSink : IGameControllerInputSink
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.Guid(4149527330, 6189, 16612, 161, 38, 252, 238, 79, 250, 30, 49)]
struct IHidGameControllerInputSink : IGameControllerInputSink
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.Guid(4149527330, 6189, 16612, 161, 38, 252, 238, 79, 250, 30, 49)]
public interface IHidGameControllerInputSink : IGameControllerInputSink
Public Interface IHidGameControllerInputSink
Implements IGameControllerInputSink
屬性
實作

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

備註

此介面必須由 HID 自訂控制器類別實作,才能從基礎 HID 裝置接收輸入報告。 這些報表不會進行剖析或修改;它們會以其原始格式擷取。

方法

OnInputReportReceived(UInt64, Byte, Byte[])

收到輸入時引發的事件。

OnInputResumed(UInt64)

繼續控制器的輸入時引發的事件。

(繼承來源 IGameControllerInputSink)
OnInputSuspended(UInt64)

暫停控制器的輸入時引發的事件。

(繼承來源 IGameControllerInputSink)

適用於

另請參閱