KPADSetMplsAccReviseParam

Syntax

#include <revolution/kpad.h>

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

Arguments

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. In other words, 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.

See Also

KPADGetMplsAccReviseParam
KPADInitMplsAccReviseParam

Revision History

2008/12/04 Initial version.


CONFIDENTIAL