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 (KPADOld)</title>
8</head>
9
10<body>
11
12<h1>KPADSetAccParam</h1>
13
14<h2>Syntax</h2>
15<dl><dd><pre class="construction">
16#include &lt;revolution/kpadOld.h&gt;
17
18void KPADSetAccParam( s32 chan, f32 play_radius, f32 sensitivity );
19</pre></dd></dl>
20
21<h2>Arguments</h2>
22<p>
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>play_radius</TH>
31<TD>Play radius. Specify a value &#x2265; 0.</TD>
32    </TR>
33    <TR>
34<TH>sensitivity</TH>
35<TD>Sensitivity. 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>
36    </TR>
37  </TBODY>
38</TABLE>
39</p>
40
41<h2>Return Values</h2>
42<p>None.</p>
43
44<H2>Description</H2>
45<p>
46Adjusts the play radius and sensitivity for the accelerometer. Larger play radius can reduce the fluctuation of values when the Wii Remote is not moving, lower sensitivity - when the controller is moving. Movement within the play radius is not eliminated completely; however, as you approach the limit of the play radius, the amount of movement becomes extremely small. If the play radius is set to 0 and sensitivity to 1, the values obtained from the device are used without modification.
47</p>
48
49<h2>See Also</h2>
50<p>None.</p>
51
52<H2>Revision History</H2>
53<P>
542006/10/25 Changed the name to KPADOld library, beginning with Revolution SDK 2.3.<br>2006/06/19 Changed the product name from tentative to official.<br>2006/03/01 Initial version.<br>
55</P>
56
57<hr><p>CONFIDENTIAL</p></body>
58</html>
59