#include <revolution/kpad.h>
WPADStatus *KPADGetWPADRingBuffer( s32 chan ) ;
chan |
One of WPAD_CHANn values. |
Returns the starting address of the WPADStatus structure ring buffer.
The KPAD library, unlike the KPADOld library, does not use the WPAD library auto-sampling. This function is provided to maintain compatibility with KPADOld library, but does not necessarily operate in an identical manner.
In the KPADOld library, this function was used as follows:
When you wish to directly access values in the
WPADStatusstructure, appropriate values can be accessed through the joint use of theWPADGetLatestIndexInBuffunction.
However, the controller must be in a stable state with no data format change, and not at controller connection/disconnection or swapping of external extension controllers. Because such condition cannot be guaranteed, the use of this function is not recommended.
In the KPAD library, the use of KPADGetUnifiedWpadStatus function is recommended in its place.
2006/10/25 Revised description to match KPAD version 2.
2006/03/01 Initial version.