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>KPADSetFSStickClamp (KPADOld)</title>
8</head>
9
10<body>
11
12<h1>KPADSetFSStickClamp</h1>
13
14<h2>Syntax</h2>
15<dl><dd><pre class="construction">
16#include &lt;revolution/kpadOld.h&gt;
17
18void KPADSetFSStickClamp ( s8 min, s8 max );
19</pre></dd></dl>
20
21<h2>Arguments</h2>
22<p>
23<TABLE class="arguments" border="1" >
24  <TBODY>
25    <TR>
26<TH>min</TH>
27<TD>Lower limit for clamp.</TD>
28    </TR>
29    <TR>
30<TH>max</TH>
31<TD>Upper limit for clamp.</TD>
32    </TR>
33  </TBODY>
34</TABLE>
35</p>
36
37<h2>Return Values</h2>
38<p>None.</p>
39
40<H2>Description</H2>
41<p>
42Sets clamp for the Control Stick data of the Nunchuk. This function indicates that Nunchuk Control Stick data (<code><a href="../wpad/WPADStatus.html">WPADFSStatus</a>::fsStickX, <a href="../wpad/WPADStatus.html">WPADFSStatus</a>::fsStickY</code>) will be clamped to 0.0f if its absolute value is less than or equal to <SPAN class="argument">min</SPAN>, and be clamped to 1.0f (or -1.0f) if its absolute value is greater than or equal to <SPAN class="argument">max</SPAN>.
43</p>
44<p>
45After this function has been called, clamped values will be stored for the Nunchuk's Control Stick data, <code><a href="./KPADStatus.html">KPADStatus</a>::ex_status.fs.fstick</code>, read using the <a href="./KPADRead.html"><code>KPADRead</code></a> function.
46</p>
47
48<h2>See Also</h2>
49<p>None.</p>
50
51<H2>Revision History</H2>
52<P>
532006/10/25 Changed the name to KPADOld library beginning with Revolution SDK 2.3.<br>2006/03/01 Initial version.<br>
54</P>
55
56<hr><p>CONFIDENTIAL</p></body>
57</html>
58