KPADSetButtonProcMode

Syntax

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

#define KPAD_BUTTON_PROC_MODE_LOOSE     0
#define KPAD_BUTTON_PROC_MODE_TIGHT     1

void KPADSetButtonProcMode( s32 chan, u8 mode );

Parameters

chan One of the WPAD_CHANn values.
mode Either KPAD_BUTTON_PROC_MODE_LOOSE or KPAD_BUTTON_PROC_MODE_TIGHT.

Return Values

None.

Description

Sets the method by which the button status stored in the WPADStatus structure should be processed inside the KPADRead function.

When the KPADRead function is called, th existing KPAD library copies the button status stored in the most recent WPADStatus structure into the KPADStatus structure within the ring buffer. If the button status at the time of the previous call is the same as the button status at the time of the current call and button status has changed midway, that change cannot be obtained. A mode has been prepared that allows changes to be obtained even in such cases.

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

KPADGetButtonProcMode

Revision History

2013/05/08 Automated cleanup pass.
2008/04/17 Initial version.


CONFIDENTIAL