GameControllerProviderInfo 类

定义

提供有关使用 GIP.SYS 连接到系统的物理游戏控制器的信息。

重要

访问此类需要声明 xboxAccessoryManagement 功能

public ref class GameControllerProviderInfo abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Gaming.Input.GamingInputPreviewContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class GameControllerProviderInfo final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Gaming.Input.GamingInputPreviewContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class GameControllerProviderInfo
Public Class GameControllerProviderInfo
继承
Object Platform::Object IInspectable GameControllerProviderInfo
属性

Windows 要求

要求 说明
设备系列
Windows Desktop Extension SDK (在 10.0.15063.0 中引入)
API contract
Windows.Gaming.Input.GamingInputPreviewContract (在 v1.0 中引入)

方法

名称 说明
GetParentProviderId(IGameControllerProvider)

使用 GIP.SYS 检索连接到系统的物理游戏控制器的父设备的永久 ID。

重要

访问此 API 需要声明 xboxAccessoryManagement 功能

GetProviderId(IGameControllerProvider)

使用 GIP.SYS 检索连接到系统的物理游戏控制器的永久性 ID。

重要

访问此类需要声明 xboxAccessoryManagement 功能

适用于