WBCGetBatteryLevel

C Specification

#include <revolution/wbc.h>
s32  WBCGetBatteryLevel ( u8 battery );

Arguments

battery Specifies the battery value passed from WPADRead within the status structure.

Return Values

Returns a value on a five-segment scale (0 - 4) corresponding to battery power remaining.

Description

This function converts the Wii Balance Board accessory's battery value to a value on a five-segment scale (0 - 4) similar to that of the Wii Remote controller.

See Also

Revision History

2007/08/31 Initial version.


CONFIDENTIAL