Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 1.04 KB

legacygipgamecontrollerprovider_isfirmwarecorrupted.md

File metadata and controls

33 lines (20 loc) · 1.04 KB
-api-id -api-type
P:Windows.Gaming.Input.Preview.LegacyGipGameControllerProvider.IsFirmwareCorrupted
winrt property

Windows.Gaming.Input.Preview.LegacyGipGameControllerProvider.IsFirmwareCorrupted

-description

Returns whether the controller firmware is corrupted.

-property-value

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.

-remarks

-see-also

GetDeviceFirmwareCorruptionState

-examples

:::code language="csharp" source="code/csharp/EnumerateControllerPropertiesSample.cs":::