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
17<h2>C Specification</h2>
18
19<dl>
20<dd><pre><code>#include &lt;revolution/wpad.h&gt;
21
22#define WPAD_CHAN0               0
23#define WPAD_CHAN1               1
24#define WPAD_CHAN2               2
25#define WPAD_CHAN3               3
26
27typedef struct WPADAcc
28{
29s16 x;
30s16 y;
31s16 z;
32}
33
34void WPADGetAccGravityUnit( s32 chan, u32 type, WPADAcc *acc );</CODE></pre>
35  </dd>
36</dl>
37
38<h2>Arguments</h2>
39<TABLE border="1">
40  <TBODY>
41    <TR>
42<TD><code><b><i>chan</i></b></code></TD>
43<TD>One of <code>WPAD_CHAN<i>n</i></code> values.</TD>
44    </TR>
45    <TR>
46<TD><code><b><i>type</i></b></code></TD>
47      <TD>One of <code>WPAD_DEV_*</code>.</TD>
48    </TR>
49    <TR>
50<TD><code><b><i>acc</i></b></code></TD>
51      <TD>A pointer that copies the rate of change in units of gravity acceleration.</TD>
52    </TR>
53  </TBODY>
54</TABLE>
55
56<h2>Return Values</h2>
57
58<p>None.</p>
59
60<H2>Description</H2>
61<p>
62Gets the amount of change in units in each axis for the Wii Remote or the motion sensor in a Nunchuk external controller. When <code>WPAD_DEV_CORE</code> is specified for <code>type</code>, it gets the amount of change in units for the Wii Remote's motion sensor; it gets the change for the Nunchuk external controller when <code>WPAD_DEV_FREESTYLE</code> is specified.
63</p>
64
65<h2>See Also</h2>
66<p>
67<A href="./toc.html" target="contents"><CODE>WPAD Functions</CODE></A><br>
68</p>
69
70<H2>Revision History</H2>
71<P>
7206/19/2006 Initial version.<BR>
73</P>
74
75</body>
76</html>