KPADGetWPADRingBuffer

Syntax

#include <revolution/kpad.h>

WPADStatus *KPADGetWPADRingBuffer( s32 chan );

Arguments

Chan One of the WPAD_CHANn values.

Return Values

Returns the starting address of the WPADStatus structure ring buffer.

Description

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:

To reference values in a WPADStatus structure directly, use the WPADGetLatestIndexInBuf function in parallel to reference the appropriate value.

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 conditions cannot be guaranteed, the use of this function is not recommended.

In the KPAD library, the use of the KPADGetUnifiedWpadStatus function is recommended in its place.

See Also

KPADGetUnifiedWpadStatus

Revision History

2006/10/25 Revised the description to match KPAD version 2.
2006/03/01 Initial version.


CONFIDENTIAL