IGameControllerBatteryInfo Schnittstelle

Definition

Schnittstelle, die es Spielcontrollerklassen (oder Headsets) ermöglicht, Informationen zum aktuellen Akkuzustand unabhängig von ihrem tatsächlichen Typ (Gamepad, Rennrad, Flight Stick usw.) abzufragen.

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
Abgeleitet
Attribute

Windows-Anforderungen

Gerätefamilie
Windows 10 Creators Update (eingeführt in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v4.0)

Methoden

TryGetBatteryReport()

Ruft Informationen zum aktuellen Akkuzustand des Spielcontrollers ab.

Gilt für: