KPADInitEx

Syntax

#include <revolution/kpad.h>

typedef struct KPADUnifiedWpadStatus {
    union {
        WPADStatus      core ;
        WPADFSStatus    fs ;
        WPADCLStatus    cl ;
        WPADTRStatus    tr ;
        WPADBLStatus    bl ;
    } u ;
    u8     fmt ;
    u8     padding ;
} KPADUnifiedWpadStatus ;

void KPADInitEx( KPADUnifiedWpadStatus uniRingBufs[], u32 length );

Arguments

uniRingBufs Buffer array to append to the ring buffer used internally by the library. The size of the array should be a multiple of WPAD_MAX_CONTROLLERS.
length Size of uniRingBufs.

Return Values

None.

Description

This function initializes the KPAD library. This function must be called once before calling any other KPAD functions. However, call WPADRegisterAllocator to register the allocator function used to allocate and deallocate memory for the WPAD library before calling this function. WPADInit is called inside this function.

See Also

KPADInit

Revision History

2008/06/04 Modified the buffer passed by the argument to be appended to the internal ring buffer.
2008/05/29 Initial version.


CONFIDENTIAL