KPADSetMplsAccReviseParam

Syntax

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

void KPADSetMplsAccReviseParam( s32 chan, f32 revise_pw, f32 revise_range );

Parameters

chan One of the WPAD_CHANn values.
revise_pw Weight used for acceleration correction. Set a value between 0 and 1. The greater the value, the more dramatically correction is applied.
revise_range Valid range for acceleration correction. Acceleration sensor values in this range centered on gravitational acceleration are used in correction calculations. A value of 1.0f indicates the magnitude of gravitational acceleration. That is, if 0.4f is specified, acceleration sensor values that fit in the range between 0.6f and 1.4f are used in the correction calculation.

Return Values

None.

Description

Configures the level of acceleration correction for the specified channel's Wii MotionPlus. These settings are applied to all axes.

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.

See Also

KPADGetMplsAccReviseParam
KPADInitMplsAccReviseParam

Revision History

2013/05/08 Automated cleanup pass.
2008/12/04 Initial version.


CONFIDENTIAL