#include <cafe/pads/wpad/wpad.h> #define WPAD_CHAN0 0 #define WPAD_CHAN1 1 #define WPAD_CHAN2 2 #define WPAD_CHAN3 3 s32 WPADGetInfo( s32 chan, WPADInfo *info );
|chan||One of the
|info||A pointer to
|WPAD_ERR_NONE||Status was retrieved normally.|
|WPAD_ERR_NO_CONTROLLER||The connection was broken.|
|WPAD_ERR_BUSY||The WPAD library was unable to receive a command.|
|WPAD_ERR_TRANSFER||A communications error prevented normal processing of the command.|
Gets the status of the Wii remote for the specified channel. This function registers a status-requesting command to the WPAD library and waits for the WPAD library to complete its processes.
Can get the following status types.
|dpd||The Pointer's operational status.|
|speaker||The speaker's operational status.|
|attach||External extension controller connection status.|
|lowBat||Whether the indicator brightness is dropping. Voltages that change the indicator brightness exhibit hysteresis. The brightness will drop when the battery level reaches |
|nearempty||Whether there is a small amount of audio data left in the sound buffer.|
|battery||The battery level, indicated on a scale of five (|
|led||The illumination status (|
|Background||Do not call this function from the background.|
|Callbacks||Do not call this function from any callback function.|
|Interrupt handler||Do not call this function from any interrupt handler.|
|Exception handler||Do not call this function from any exception handler.|
|Multiple Cores||Do not call this function from more than one Core.|
2013/05/08 Automated cleanup pass.
2009/11/27 Added a caution regarding use while HOME Menu is displaying.
2008/07/08 Added explanations related to lowBat and battery.
2007/09/18 Added nearempty to
2007/09/11 Added a note related to Interrupts and Callback Functions.
2006/09/06 Added WPAD_BATTERY_LEVEL_CRITICAL.
WPADInfo to See Also.
2006/06/19 Initial version.