KPADInitEx

Syntax

#include <cafe/pads/kpad/kpad.h>

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

Parameters

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. WPADInit is called inside this function.

Wii U Bluetooth devices will stay connected through system restarts and process switches but only if the time that the library is stopped is less than 10 seconds. For this reason, KPAD initialization should be performed early in the boot up process.

When this function is called, DPD is turned on by default for controllers which have its functionality.

Do Not Call From

Background Do not call this function from the background.
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.

See Also

KPADInit

Revision History

2013/05/08 Automated cleanup pass.
2012/06/27 Removed references to WPADRegisterAllocator
2008/06/04 Modified the buffer passed by the argument to be appended to the internal ring buffer.
2008/05/29 Initial version.


CONFIDENTIAL