IHidGameControllerInputSink 接口

定义

定义自定义 HID (人机接口设备) 控制器接口所需的方法。

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)

适用于

另请参阅