IGameControllerBatteryInfo Interface

Définition

Interface qui permet aux classes de contrôleur de jeu (ou de casque) d’interroger des informations sur l’état actuel de la batterie, quel que soit leur type réel (boîtier de commande, volant de course, bâton de vol, etc.).

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
Dérivé
Attributs

Configuration requise pour Windows

Famille d’appareils
Windows 10 Creators Update (introduit dans 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v4.0)

Méthodes

TryGetBatteryReport()

Obtient des informations sur l’état actuel de la batterie du contrôleur de jeu.

S’applique à