共用方式為


IGameControllerBatteryInfo 介面

定義

介面可讓遊戲控制器 (或頭戴式裝置) 類別查詢目前電池狀態的相關資訊,不論其實際類型 (遊戲台、賽車方向盤、飛行杆等等) 。

public interface class IGameControllerBatteryInfo
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.Guid(3706504833, 14691, 19878, 149, 93, 85, 63, 59, 111, 97, 97)]
struct IGameControllerBatteryInfo
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.Guid(3706504833, 14691, 19878, 149, 93, 85, 63, 59, 111, 97, 97)]
public interface IGameControllerBatteryInfo
Public Interface IGameControllerBatteryInfo
衍生
屬性

Windows 需求

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

方法

名稱 Description
TryGetBatteryReport()

取得遊戲控制器目前電池狀態的相關資訊。

適用於