XInputGetBatteryInformation function xinput

int XInputGetBatteryInformation(
  1. int dwUserIndex,
  2. int devType,
  3. Pointer<XINPUT_BATTERY_INFORMATION> pBatteryInformation
)

Retrieves the battery type and charge status of a wireless controller.

DWORD XInputGetBatteryInformation(
  [in]  DWORD                      dwUserIndex,
  [in]  BYTE                       devType,
  [out] XINPUT_BATTERY_INFORMATION *pBatteryInformation
);

Implementation

int XInputGetBatteryInformation(int dwUserIndex, int devType,
        Pointer<XINPUT_BATTERY_INFORMATION> pBatteryInformation) =>
    _XInputGetBatteryInformation(dwUserIndex, devType, pBatteryInformation);