Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XINPUT_BATTERY_INFORMATION structure

Contains information on battery type and charge state.

Syntax


typedef struct _XINPUT_BATTERY_INFORMATION {
  BYTE BatteryType;
  BYTE BatteryLevel;
} XINPUT_BATTERY_INFORMATION, *PXINPUT_BATTERY_INFORMATION;

Members

BatteryType

The type of battery. BatteryType will be one of the following values.

ValueDescription
BATTERY_TYPE_DISCONNECTEDThe device is not connected. 
BATTERY_TYPE_WIREDThe device is a wired device and does not have a battery. 
BATTERY_TYPE_ALKALINEThe device has an alkaline battery. 
BATTERY_TYPE_NIMHThe device has a nickel metal hydride battery. 
BATTERY_TYPE_UNKNOWNThe device has an unknown battery type. 

 

BatteryLevel

The charge state of the battery. This value is only valid for wireless devices with a known battery type. BatteryLevel will be one of the following values.

Value
BATTERY_LEVEL_EMPTY
BATTERY_LEVEL_LOW
BATTERY_LEVEL_MEDIUM
BATTERY_LEVEL_FULL

 

Requirements

Header

XInput.h

See also

XInput Structures
XInputSetState
XINPUT_GAMEPAD
XInputGetCapabilities

 

 

Show:
© 2017 Microsoft