VPADSetButtonProcMode

Syntax

#include <cafe/vpad.h>

#define VPAD_BUTTON_PROC_MODE_LOOSE     0
#define VPAD_BUTTON_PROC_MODE_TIGHT     1

void VPADSetButtonProcMode( s32 chan, u8 mode );

Parameters

chan Controller number. 0 for DRC1 and 1 for DRC2.
mode Either VPAD_BUTTON_PROC_MODE_LOOSE or VPAD_BUTTON_PROC_MODE_TIGHT.

Return Values

None.

Description

Sets the method by which the button status should be processed inside the VPADRead function.

When the VPADRead function is called, the existing VPAD library copies the most recent button status into the VPADStatus 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.
If the VPAD_BUTTON_PROC_MODE_LOOSE is set by this function, only the most recent values are accessed when the VPADRead functions are called, and those values are copied into all the current-frame sampling buffers.

Do Not Call From

Background Do not call this function from the background.
Multiple threads This function is not thread-safe.
Multiple Cores Do not call this function from more than one Core.

See Also

VPADGetButtonProcMode

Revision History

2013/05/08 Automated cleanup pass.
2012/10/05 Added the comment.
2011/03/30 Initial version.


CONFIDENTIAL