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