مشاركة عبر


IGameControllerBatteryInfo Interface

Definition

Interface that allows game controller (or headset) classes to query for information about the current battery state, regardless of their actual type (gamepad, racing wheel, flight stick, and so on).

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
Derived
Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Methods

TryGetBatteryReport()

Gets information about the game controller's current battery state.

Applies to