KPADSetFSStickClamp

C Specification

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

Arguments

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

Return Values

None.

Description

Sets the clamp for the Control Stick data of the Nunchuk. This function indicates that Nunchuk Control Stick data be clamped to 0.0f if the absolute value of (WPADFSStatus::fsStickX, WPADFSStatus::fsStickY) 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 Nunchuk Control Stick data (KPADStatus::ex_status.fs.fstick).

See Also

Revision History

03/01/2006 Initial version.