VPADGetButtonProcMode

Syntax

#include <cafe/vpad.h>

#define VPAD_BUTTON_PROC_MODE_LOOSE     0
#define VPAD_BUTTON_PROC_MODE_TIGHT     1

u8 VPADGetButtonProcMode( s32 chan );

Parameters

chan Controller number. 0 for DRC1 and 1 for DRC2.

Return Values

VPAD_BUTTON_PROC_MODE_LOOSE As previously, the most recent button status is copied into the VPADStatus structure in the ring buffer.
VPAD_BUTTON_PROC_MODE_TIGHT The button status is copied into the VPADStatus structure in the ring buffer in the order received.

Description

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

The existing VPAD library copies the most recent button status into the VPADStatus structure within the ring buffer when the VPADRead function is called. 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.
Multiple threads This function is not thread-safe.
Multiple Cores Do not call this function from more than one Core.

See Also

VPADSetButtonProcMode

Revision History

2013/05/08 Automated cleanup pass.
2011/03/30 Initial version.


CONFIDENTIAL