KPADSetFSStickClamp

Syntax

#include <cafe/pads/kpad/kpad.h>

void KPADSetFSStickClamp ( s8 min, s8 max );

Parameters

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

Return Values

None.

Description

Sets clamp for the Control Stick data of the Nunchuk. This function indicates that Nunchuk controller's Control Stick data (WPADFSStatus::fsStickX, WPADFSStatus::fsStickY) will be clamped to 0.0f if its absolute value is less than or equal to min, and be clamped to 1.0f (or -1.0f) if its absolute value is greater than or equal to max.

After this function has been called, clamped values will be stored for the Nunchuk controller's Control Stick data, KPADStatus::ex_status.fs.fstick, read using the KPADRead function.

Do Not Call From

Background Do not call this function from the background.
Interrupt handler Do not call this function from any interrupt handler.
Exception handler Do not call this function from any exception handler.
Multiple Cores Do not call this function from more than one Core.

Revision History

2013/05/08 Automated cleanup pass.
2006/03/01 Initial version.


CONFIDENTIAL