KPADGetButtonProcMode

Syntax

#include <revolution/kpad.h>

#define KPAD_BUTTON_PROC_MODE_LOOSE     0
#define KPAD_BUTTON_PROC_MODE_TIGHT     1

u8 KPADGetButtonProcMode( s32 chan );

Arguments

chan One of the WPAD_CHANn values.

Return Values

KPAD_BUTTON_PROC_MODE_LOOSE As in the past, the most recent button status is copied into the KPADStatus structure in the ring buffer.
KPAD_BUTTON_PROC_MODE_TIGHT The button status stored in WPADStatus is copied into the KPADStatus structure in the ring buffer in the order received.

Description

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

The existing KPAD library copies the button status stored in the most recent WPADStatus structure into the KPADStatus structure within the ring buffer when the KPADRead 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 therefore been prepared that allows changes to be obtained even in such cases.

See Also

KPADSetButtonProcMode

Revision History

2008/04/17 Initial version.


CONFIDENTIAL