VPADSetAccParam

Syntax

#include <cafe/vpad.h>

void VPADSetAccParam( s32 chan, f32 play_radius, f32 sensitivity );

Parameters

chan Controller number. 0 for DRC1 and 1 for DRC2.
play_radius Play radius. Specify a value ≥ 0.
sensitivity Sensitivity. Specify a value from 0 to 1. When set to 0, there is no response; when set to 1, the values obtained from the device are used without modification.

Return Values

None.

Description

Adjusts the play radius and sensitivity for the accelerometer. Larger play radius can reduce the fluctuation of values when the DRC is not moving; lower sensitivity can reduce the fluctuation of values when the controller is moving. Movement within the play radius is not eliminated completely. However, as you approach the limit of the play radius, the amount of movement becomes extremely small. If the play radius is set to 0 and sensitivity to 1, the values obtained from the device are used without modification.

The default values for play radius and sensitivity are 0 and 1, respectively.

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

VPADGetAccParam

Revision History

2013/05/08 Automated cleanup pass.
2011/03/30 Initial version.


CONFIDENTIAL