#include <revolution/wpad.h>
#define WPAD_CHAN0 0
#define WPAD_CHAN1 1
#define WPAD_CHAN2 2
#define WPAD_CHAN3 3
#define WPAD_TRIGGER_FIXED_BASE 0
#define WPAD_TRIGGER_INDIVIDUAL_BASE 1
void WPADClampTrigger( s32 chan, void *status, u32 type );
chan |
One of the WPAD_CHAN*. |
status |
Pointer to the WPADStatus structure to be clamped. If the err member stores WPAD_ERR_NONE, the analog trigger input is clamped according to the algorithm described below. |
type |
Stores either WPAD_TRIGGER_FIXED_BASE or WPAD_TRIGGER_INDIVIDUAL_BASE. |
None.
Clamps the input of the analog trigger of a Classic Controller.
The algorithm for clamping the analog trigger can be specified using type as shown in the figure below. If WPAD_TRIGGER_FIXED_BASE is specified, trigger input is clamped to a lower limit of 30 and an upper limit of 180 just like the clamp algorithm used for the analog trigger of the Nintendo GameCube standard controller. If WPAD_TRIGGER_INDIVIDUAL_BASE is specified, clamping is performed using the lower limit value for each Classic Controller as obtained using the WPADGetCLTriggerThreshold function and the upper limit value as (the obtained lower limit value + 180).

WPAD Functions
WPADGetCLTriggerThreshold, WPADCLStatus
2006/08/15 Initial version.
CONFIDENTIAL