IGameController 介面

定義

所有控制器裝置都必須實作的核心介面,不論其實際類型 (遊戲台、賽車方向盤、飛行杆等等) 。 此介面主要是為了支援遊戲控制器的擴充性,可讓 OEM (原始設備製造商) 發佈 WinRT (Windows 執行階段) 類別,以提供裝置功能的豐富存取權,同時整合至基礎遊戲控制器裝置列舉架構。

public interface class IGameController
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(464479522, 24420, 17093, 130, 103, 185, 254, 34, 21, 191, 189)]
struct IGameController
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(464479522, 24420, 17093, 130, 103, 185, 254, 34, 21, 191, 189)]
public interface IGameController
Public Interface IGameController
衍生
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

屬性

Headset

連接至控制器的音訊頭戴式裝置。

IsWireless

取得值,這個值表示遊戲台的無線狀態。

User

與控制器相關聯的使用者。

事件

HeadsetConnected

當頭戴式裝置附加至控制器時發出訊號。

HeadsetDisconnected

當頭戴式裝置與控制器中斷連線時發出訊號。

UserChanged

與控制器相關聯的使用者已變更時發出訊號。

適用於