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=windows-1252">
6<META name="GENERATOR" content="Microsoft FrontPage 5.0">
7<META http-equiv="Content-Style-Type" content="text/css">
8<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
9<title>WPADGetAccGravityUnit</title>
10</head>
11
12<body>
13
14<h1>WPADGetAccGravityUnit</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/wpad.h&gt;
19
20#define WPAD_CHAN0               0
21#define WPAD_CHAN1               1
22#define WPAD_CHAN2               2
23#define WPAD_CHAN3               3
24
25typedef struct WPADAcc
26{
27    s16 x;
28    s16 y;
29    s16 z;
30}
31
32void WPADGetAccGravityUnit( s32 chan, u32 type, WPADAcc *acc );
33</pre></dd></dl>
34
35<h2>Arguments</h2>
36<TABLE class="arguments" border="1" >
37  <TBODY>
38    <TR>
39<TH>chan</TH>
40<TD>One of the <code>WPAD_CHAN<i>n</i></code> values.</TD>
41    </TR>
42    <TR>
43<TH>type</TH>
44<TD>One of the <code>WPAD_DEV_*</code>.</TD>
45    </TR>
46    <TR>
47<TH>acc</TH>
48<TD>Pointer used to copy X, Y, Z axis calibration values.</TD>
49    </TR>
50  </TBODY>
51</TABLE>
52
53<h2>Return Values</h2>
54<p>None.</p>
55
56<H2>Description</H2>
57<p>
58Gets the calibration data for each axis of the Motion Sensor on the specified channel for either the Wii Remote or Nunchuk. This is the Motion Sensor value when 1G (gravity) of force is applied to each of the X, Y, and Z axes.
59</p>
60
61<ul>
62	<li>Gets calibration data for the Wii Remote's Motion Sensor when the <SPAN class="argument">type</SPAN> is <code>WPAD_DEV_CORE</code>.</li>
63	<li>Gets calibration data for the Nunchuk's Motion Sensor when the <SPAN class="argument">type</SPAN> is <code>WPAD_DEV_FREESTYLE</code>.</li>
64</ul>
65
66
67<h2>See Also</h2>
68<p>
69None.
70</p>
71
72<H2>Revision History</H2>
73<P>
742007/02/13 Changed the Description to use the term &quot;calibration&quot;.<br>2006/06/19 Initial version.<br>
75</P>
76
77<hr><p>CONFIDENTIAL</p></body>
78</html>