KPADSetMplsDirectionMag

Syntax

#include <revolution/kpad.h>

void KPADSetMplsDirectionMag( s32 chan, f32 mag );

Arguments

chan One of the WPAD_CHANn values.
mag Magnitude applied to the angular velocity used to calculate the 3D attitude.

Return Values

None.

Description

Sets the magnitude to be applied to the angular velocity value used to internally calculate the dir member of the KPADMPStatus structure obtained by the KPADRead function for the specified channel's Wii MotionPlus. For example, if mag is set to 2.0f and the attitude is rotated 90 degrees, the dir member of the KPADMPStatus is calculated as an attitude rotated 180 degrees.

See Also

None.

Revision History

2008/12/04 Initial version.


CONFIDENTIAL