WPADInfo

C Specification

#include <revolution/wpad.h>

#define WPAD_BATTERY_LEVEL_LOW        1
#define WPAD_BATTERY_LEVEL_MEDIUM     2
#define WPAD_BATTERY_LEVEL_HIGH       3
#define WPAD_BATTERY_LEVEL_MAX        4

#define WPAD_LED_CHAN_1             0x1
#define WPAD_LED_CHAN_2             0x2
#define WPAD_LED_CHAN_3             0x4
#define WPAD_LED_CHAN_4             0x8

typedef struct WPADInfo
{
BOOL dpd;
BOOL speaker;
BOOL attach;
BOOL lowBat;
u8 battery;
u8 led;
u8 protocol;
u8 firmware;
}

Elements

dpdOperational status of the pointer
speakerOperational status of the speaker
attachExternal extension controller connection status.
lowBatIndicator that the battery has fallen below a certain level.
batteryExpresses the battery level using four (WPAD_BATTERY_LEVEL_*) levels.
ledIllumination status (WPAD_LED_CHAN_*) of the four player indicators.
protocolNot used.
firmwareNot used.

Description

The WPADStatus structure represents the status of the Wii Remote.

TRUE is stored when the pointer has been launched with the WPADControlDpd function; FALSE is stored otherwise.
TRUE is stored when the speaker has been launched with the WPADControlSpeaker function; FALSE is stored if it is stopped.
TRUE is stored if an external extension controller is connected; FALSE is stored otherwise.
Indicates how much battery power remains in the Wii Remote with lowBat and battery. While the Wii Remote is connecting or while it is being registered, the remaining battery power is displayed with the four player indicators. battery is stored using four levels in the same way. In addition, when battery is WPAD_BATTERY_LEVEL_LOW, lowBat is TRUE.
The on/off status of the four player indicators for the Wii Remote is stored as a bit pattern. The lowest bit corresponds to the left of the player indicator.
This member is not used.
This member is not used.

See Also

WPAD Functions
WPADGetInfo
WPADGetInfoAsync

Revision History

08/15/2006 Initial version.


CONFIDENTIAL