KPADSetMplsZeroDriftMode

Syntax

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

typedef enum KPADMplsZeroDriftMode {
    KPAD_MPLS_ZERODRIFT_LOOSE = 0,
    KPAD_MPLS_ZERODRIFT_STANDARD,
    KPAD_MPLS_ZERODRIFT_TIGHT
} KPADMplsZeroDriftMode ;

void KPADSetMplsZeroDriftMode( s32 chan, KPADMplsZeroDriftMode mode );

Parameters

chan One of the WPAD_CHANn values.
mode Any one of KPAD_MPLS_ZERODRIFT_*.

Return Values

None.

Description

Sets the zero-point drift correction mode of the specified channel's Wii MotionPlus. These settings are applied to all axes.

If KPAD_MPLS_ZERODRIFT_LOOSE is set, correction may be applied even during constant velocity motion, because the Wii MotionPlus value is treated as stable and an attempt is made to apply correction even if the value varies slightly. In such cases, this can be improved by setting a mode that uses stricter conditions. The default is set to KPAD_MPLS_ZERODRIFT_STANDARD.

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

KPADGetMplsZeroDriftMode
KPADInitMplsZeroDriftMode

Revision History

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


CONFIDENTIAL