KPADSetMplsDirectionMag

Syntax

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

void KPADSetMplsDirectionMag( s32 chan, f32 mag );

Parameters

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.

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.

Revision History

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


CONFIDENTIAL