KPADSetGCTriggerClamp

This function is not supported in the KPAD library that corresponds to UI Tool Version 4.

Syntax

#include <revolution/kpadOld.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 be used on the L and R Buttons of the Nintendo GameCube Controller. This function indicates that the L and R Buttons of the Nintendo GameCube Controller will be clamped to 0.0f if the absolute value of PADStatus::triggerLeft, PADStatus::triggerRight is less than or equal to min, and to 1.0f (or -1.0f) if the absolute value is greater than or equal to max.

After this function has been called, the clamped values read using the KPADRead function will be stored for the L and R Buttons of the Nintendo GameCube Controller (KPADStatus::ex_status.gc.ltrigger, KPADStatus::ex_status.gc.rtrigger).

See Also

None.

Revision History

2006/10/25 Changed the name to KPADOld library beginning with Revolution SDK 2.3.
2006/06/19 Noted that this function is not supported for UI Tool Version 4.
2006/03/01 Initial version.


CONFIDENTIAL