-api-id | -api-type |
---|---|
P:Windows.Gaming.Input.Preview.LegacyGipGameControllerProvider.IsFirmwareCorrupted |
winrt property |
Returns whether the controller firmware is corrupted.
Battery charging state of the controller.
GetDeviceFirmwareCorruptionState
should be used rather than IsFirmwareCorrupted
as it is supported by most devices. IsFirmwareCorrupted
is only supported by older devices and should only be used if GetDeviceFirmwareCorruptionState
is not supported.
Caution
To avoid damaging devices, the firmware corruption and update APIs should only be used with hardware you have developed.
GetDeviceFirmwareCorruptionState
:::code language="csharp" source="code/csharp/EnumerateControllerPropertiesSample.cs":::