#include <revolution/wpad.h> #define WPAD_CHAN0 0 #define WPAD_CHAN1 1 #define WPAD_CHAN2 2 #define WPAD_CHAN3 3 u32 WPADGetLatestIndexInBuf ( s32 chan );
| chan | One of the WPAD_CHANn values. |
|---|
Returns the index of the ring buffer where the most recent data is stored. If no data has been obtained yet, returns 0.
Gets the index to the data last stored in the ring buffer for the Wii Remote for the specified channel.
Be aware that this function's return value will also be cleared when the ring buffer is cleared in the following circumstances.
2006/10/05 Added mention that values are cleared when a controller is connected.
2006/07/24 Removed statement that values are cleared when an external extension controller is plugged into or unplugged from the console.
2005/10/20 Added a note about behavior when data has never been obtained. Added WPAD_CHANn macros.
2005/08/01 Initial version.
CONFIDENTIAL