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>KPADSetGCStickClamp (KPADOld)</title>
8</head>
9
10<body>
11
12
13
14<h1>KPADSetGCStickClamp</h1>
15<font color="ff0000"><B>Note: </B>This function is not supported in the KPAD library corresponding to UI Tool Version 4.</font>
16
17<h2>C Specification</h2>
18<dl>
19  <dd><pre><code>#include &lt;revolution/kpadOld.h&gt;</code></pre>
20  </dd>
21<dd><pre><code>void KPADSetGCStickClamp ( s8 min, s8 max );</code></pre>
22  </dd>
23</dl>
24
25<h2>Arguments</h2>
26<p>
27<TABLE border="1">
28  <TBODY>
29    <TR>
30<TD><code><b><i>min</i></b></code></TD>
31<TD>Lower limit for clamp.</TD>
32    </TR>
33    <TR>
34<TD><CODE><b><i>max</i></b></CODE></TD>
35<TD>Upper limit for clamp.</TD>
36    </TR>
37  </TBODY>
38</TABLE>
39</p>
40
41<h2>Return Values</h2>
42<p>None.</p>
43
44<H2>Description</H2>
45<p>
46Sets the clamp to use on Control Stick data of the Nintendo&nbsp;GameCube controller. This function indicates that Nintendo&nbsp;GameCube controller Control Stick data be clamped to 0.0f if the absolute value of <code>(PADStatus::stickX, PADStatus::StickY)</code> is less than or equal to min, and be clamped to 1.0f (or -1.0f) if the absolute value is greater than or equal to max.
47</p>
48<p>
49After this function has been called, clamped values will be stored for Nintendo&nbsp;GameCube controller Control Stick data <code>(<a href="./KPADStatus.html">KPADStatus</a>::ex_status.gc.mstick)</code> read using the <a href="./KPADRead.html"><code>KPADRead</code></a> function.
50</p>
51
52<h2>See Also</h2>
53
54<H2>Revision History</H2>
55<P>
562006/03/01 Initial version. <BR>2006/06/19 Added indication that this function is not supported for UI Tool Version 4.<BR> 2006/10/25 Changed the name from Revolution SDK 2.3 to KPADOld library.<br>
57</P>
58
59<hr>
60<P>CONFIDENTIAL</p>
61</BODY>
62</HTML>
63