KPADSetGCTriggerClamp

Note: This function is not supported in the KPAD library corresponding to UI Tool Version 4.

C Specification

#include <revolution/kpad.h>
void KPADSetGCTriggerClamp ( u8 min, u8 max );

Arguments

min Lower limit for clamp.
max Upper limit for clamp.

Return Values

None.

Description

Sets the clamp to use on the L and R Buttons of the Nintendo GameCube standard controller. This function indicates that Nintendo GameCube standard controller L and R Buttons be clamped to 0.0f if the absolute value of (PADStatus::triggerLeft, PADStatus::triggerRight) is less than or equal to min, and be clamped to 1.0f (or -1.0f) if the absolute value is greater than or equal to max.

After this function has been called, clamped values (which are read using the KPADRead function) will be stored in Nintendo GameCube standard controller L and R Buttons (KPADStatus::ex_status.gc.ltrigger and KPADStatus::ex_status.gc.rtrigger).

See Also

Revision History

03/01/2006 Initial version.
06/19/2006 Added indication that this function is not supported for UI Tool Version 4.