#include <cafe/vpad.h> #define VPAD_BUTTON_PROC_MODE_LOOSE 0 #define VPAD_BUTTON_PROC_MODE_TIGHT 1 void VPADSetButtonProcMode( s32 chan, u8 mode );
Sets the method by which the button status should be processed inside 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.
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.
|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.|
2013/05/08 Automated cleanup pass.
2012/10/05 Added the comment.
2011/03/30 Initial version.