VPADSetLStickClampThreshold

Syntax

#include <cafe/vpad.h>

void VPADSetLStickClampThreshold( s32 chan, s32 max, s32 min );

Parameters

chan Controller number. 0 for DRC1 and 1 for DRC2.
max Upper limit for clamp.
min Lower limit for clamp.

Return Values

None.

Description

Sets the clamp for the left stick data of the DRC. This function indicates that the DRC's Stick data (VPADStatus::lStick ) 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.

The default maximum and minimum values are 919 and 258, respectively. This function cannot set the values beyond this range. For example, if this function is called like VPADSetLStickClampThreshold(0, 1000, 0), the maximum and minimum values are set to 919 and 258 internally.

Do Not Call From

Background Do not call this function from the background.
Multiple threads This function is not thread-safe.
Multiple Cores Do not call this function from more than one Core.

See Also

VPADSetRStickClampThreshold
VPADGetLStickClampThreshold
VPADGetRStickClampThreshold

Revision History

2013/05/08 Automated cleanup pass.
2012/10/05 Modified the description.
2012/04/30 Fixed the default value of the threshold.
2011/04/15 Initial version.


CONFIDENTIAL