XInputGetBatteryInformation function xinput
int
XInputGetBatteryInformation(
- int dwUserIndex,
- BATTERY_DEVTYPE devType,
- Pointer<
XINPUT_BATTERY_INFORMATION> pBatteryInformation
Retrieves the battery type and charge status of a wireless controller.
To learn more, see learn.microsoft.com/windows/win32/api/xinput/nf-xinput-xinputgetbatteryinformation.
Implementation
@pragma('vm:prefer-inline')
int XInputGetBatteryInformation(
int dwUserIndex,
BATTERY_DEVTYPE devType,
Pointer<XINPUT_BATTERY_INFORMATION> pBatteryInformation,
) => _XInputGetBatteryInformation(dwUserIndex, devType, pBatteryInformation);