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>KPADSetGCSubstickClamp (KPADOld)</title>
8</head>
9
10<body>
11
12<h1>KPADSetGCSubstickClamp</h1>
13<font color="ff0000">This function is not supported in the KPAD library for UI Tool Version 4.</font>
14
15<h2>Syntax</h2>
16<dl><dd><pre class="construction">
17#include &lt;revolution/kpadOld.h&gt;
18
19void KPADSetGCSubstickClamp ( s8 min, s8 max );
20</pre></dd></dl>
21
22<h2>Arguments</h2>
23<p>
24<TABLE class="arguments" border="1" >
25  <TBODY>
26    <TR>
27<TH>min</TH>
28<TD>Lower limit for clamp.</TD>
29    </TR>
30    <TR>
31<TH>max</TH>
32<TD>Upper limit for clamp.</TD>
33    </TR>
34  </TBODY>
35</TABLE>
36</p>
37
38<h2>Return Values</h2>
39<p>None.</p>
40
41<H2>Description</H2>
42<p>
43Sets the clamp to be used on the C Stick data of the Nintendo&nbsp;GameCube Controller. This function indicates that the C Stick data of the Nintendo GameCube Controller will be clamped to 0.0f if the absolute value of (<CODE>PADStatus::substickX</CODE>, <CODE>PADStatus::substickY</CODE>) is less than or equal to <SPAN class="argument">min</SPAN>, and to 1.0f (or -1.0f) if the absolute value is greater than or equal to <SPAN class="argument">max</SPAN>.
44</p>
45<p>
46After this function has been called, clamped values read using the <a href="./KPADRead.html"><code>KPADRead</code></a> function will be stored for Nintendo GameCube Controller C Stick data (<code><a href="./KPADStatus.html">KPADStatus</a>::ex_status.gc.cstick</code>), .
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 Noted that this function is not supported for UI Tool Version 4.<br>2006/03/01 Initial version.<br>
55</P>
56
57<hr><p>CONFIDENTIAL</p></body>
58</html>
59