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<h1>KPADSetFSStickClamp</h1> 13 14<h2>Syntax</h2> 15<dl><dd><pre class="construction"> 16#include <revolution/kpad.h> 17 18void KPADSetFSStickClamp ( s8 min, s8 max ); 19</pre></dd></dl> 20 21<h2>Arguments</h2> 22<TABLE class="arguments" border="1" > 23 <TBODY> 24 <TR> 25<TH>min</TH> 26<TD>Lower limit for clamp.</TD> 27 </TR> 28 <TR> 29<TH>max</TH> 30<TD>Upper limit for clamp.</TD> 31 </TR> 32 </TBODY> 33</TABLE> 34 35<h2>Return Values</h2> 36<p>None.</p> 37 38<H2>Description</H2> 39<p> 40Sets 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>. 41</p> 42<p> 43After 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. 44</p> 45 46<h2>See Also</h2> 47<p>None.</p> 48 49<H2>Revision History</H2> 50<P> 512006/03/01 Initial version.<br> 52</P> 53 54<hr><p>CONFIDENTIAL</p></body> 55</html> 56