1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=utf-8">
6<META http-equiv="Content-Style-Type" content="text/css">
7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
8<title>KPADSetMplsDirectionMag</title>
9</head>
10
11<body>
12
13<h1>KPADSetMplsDirectionMag</h1>
14
15<h2>Syntax</h2>
16<dl><dd><pre class="construction">
17#include &lt;revolution/kpad.h&gt;
18
19void KPADSetMplsDirectionMag( s32 chan, f32 mag );
20</pre></dd></dl>
21
22<h2>Arguments</h2>
23<TABLE class="arguments" border="1" >
24  <TBODY>
25    <TR>
26      <TH>chan</TH>
27      <TD>One of the <code>WPAD_CHAN<i>n</i></code> values.</td>
28    </TR>
29    <TR>
30      <TH>mag</TH>
31      <TD>Magnitude applied to the angular velocity used to calculate the 3D attitude.</td>
32    </TR>
33  </TBODY>
34</TABLE>
35
36<h2>Return Values</h2>
37<p>None.</p>
38
39<H2>Description</H2>
40<p>
41Sets the magnitude to be applied to the angular velocity value used to internally calculate the <code>dir</code> member of the <a href="./KPADMPStatus.html"><code>KPADMPStatus</code></a> structure obtained by the <a href="./KPADRead.html"><code>KPADRead</code></a> function for the specified channel's Wii MotionPlus. For example, if <SPAN class="argument">mag</SPAN> is set to 2.0f and the attitude is rotated 90 degrees, the <code>dir</code> member of the <a href="./KPADMPStatus.html"><code>KPADMPStatus</code></a> is calculated as an attitude rotated 180 degrees.
42</p>
43
44<h2>See Also</h2>
45<P>None.</P>
46
47<H2>Revision History</H2>
48<P>
492008/12/04 Initial version.
50</P>
51
52<hr><p>CONFIDENTIAL</p></body>
53</html>