1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META http-equiv="Content-Style-Type" content="text/css">
6<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
7<title>KPADSetAccParam</title>
8</head>
9
10<body>
11
12
13
14<h1>KPADSetAccParam</h1>
15
16
17<h2>C Specification</h2>
18
19<dl>
20<dd><pre><code>#include &lt;revolution/kpad.h&gt;</code></pre>
21  </dd>
22<dd><pre><CODE>void KPADSetAccParam( s32 chan, f32 play_radius, f32 sensitivity ) ;</CODE></pre>
23  </dd>
24</dl>
25
26<h2>Arguments</h2>
27<p>
28<TABLE border="1">
29  <TBODY>
30    <TR>
31<TD><code><b><i>chan</i></b></code></TD>
32<TD>One of <code>WPAD_CHAN<i>n</i></code> values.</TD>
33    </TR>
34    <TR>
35<TD><CODE><b><i>play_radius</i></b></CODE></TD>
36<TD>Play radius. Specify a value &#x2265; 0.</TD>
37    </TR>
38    <TR>
39<TD><CODE><b><i>sensitivity</i></b></CODE></TD>
40<TD>The sensitivity. <BR>Specify a value from 0 to 1. When set to 0, there is no response. When set to 1, the values obtained from the device are used without modification.</TD>
41    </TR>
42  </TBODY>
43</TABLE>
44</p>
45
46<h2>Return Values</h2>
47<p>None.</p>
48
49<H2>Description</H2>
50<p>
51Adjusts the play radius and sensitivity for the accelerometer. A larger play radius can reduce the fluctuation of values when the Wii Remote Control is not moving. A lower sensitivity can reduce fluctuation of values when the controller is moving. Movement within the play radius is not eliminated completely, but as you approach the play radius, the amount of movement becomes extremely small. If the play radius is set to 0 and the sensitivity is set to 1, the values obtained from the device are used without modification.
52</p>
53<p>
54The default values for the play radius and sensitivity are 0 and 1, respectively.
55</p>
56
57<h2>See Also</h2>
58<p>
59<a href="./KPADGetAccParam.html"><code>KPADGetAccParam</code></a>
60</p>
61
62<H2>Revision History</H2>
63<P>
642007/04/25 Added a description about the default values. Added <a href="./KPADGetAccParam.html"><code>KPADGetAccParam</code></a> to the <B>See Also</B> section.<br>2006/06/19 Changed tentative product name to official name.<BR>2006/03/01 Initial version. <BR>
65</P>
66
67</body>
68</html>
69