GameControllerProviderInfo 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
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
- 继承
- 属性
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 功能 |