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>KPADSetHoriParam</title>
8</head>
9
10<body>
11
12<h1>KPADSetHoriParam</h1>
13
14<h2>Syntax</h2>
15<dl><dd><pre class="construction">
16#include &lt;revolution/kpad.h&gt;
17
18void KPADSetHoriParam( s32 chan, f32 play_radius, f32 sensitivity );
19</pre></dd></dl>
20
21<h2>Arguments</h2>
22<TABLE class="arguments" border="1" >
23  <TBODY>
24    <TR>
25<TH>chan</TH>
26<TD>One of the <code>WPAD_CHAN<i>n</i></code> values.</TD>
27    </TR>
28    <TR>
29<TH>play_radius</TH>
30<TD>Play radius. Specify a value &#x2265; 0.</TD>
31    </TR>
32    <TR>
33<TH>sensitivity</TH>
34<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>
35    </TR>
36  </TBODY>
37</TABLE>
38
39<h2>Return Values</h2>
40<p>None.</p>
41
42<H2>Description</H2>
43<p>
44This function adjusts the play radius and sensitivity for the horizontal plane slope that is calculated from the value obtained by the DPD. A larger play radius can reduce the fluctuation of values when the Wii Remote is not moving, and a 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.
45</p>
46<p>
47The default values for play radius and sensitivity are 0 and 1, respectively. The play radius and sensitivity keep their default values on the Wii Menu as well. Set these values to their defaults in order to match Wii Menu behavior.
48</p>
49
50<h2>See Also</h2>
51<p class="reference">
52<a href="./KPADGetHoriParam.html">KPADGetHoriParam</a>
53</p>
54
55<H2>Revision History</H2>
56<P>
572008/07/08 Added information on settings in the Wii Menu.<br>2007/04/25 Added the default values. Added <a href="./KPADGetHoriParam.html"><code>KPADGetHoriParam</code></a> to <B>See Also</B>.<br>2006/06/19 Changed the product name from tentative to official.<br>2006/03/01 Initial version.<BR>
58</P>
59
60<hr><p>CONFIDENTIAL</p></body>
61</html>
62