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>KPADSetGCTriggerClamp</title>
8</head>
9
10<body>
11
12
13
14<h1>KPADSetGCTriggerClamp</h1>
15<font color="ff0000">Note: 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/kpad.h&gt;</code></pre>
20  </dd>
21<dd><pre><code>void KPADSetGCTriggerClamp ( u8 min, u8 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 the L and R Buttons of the Nintendo&nbsp;GameCube standard controller. This function indicates that Nintendo&nbsp;GameCube standard controller L and R Buttons be clamped to 0.0f if the absolute value of <code>(PADStatus::triggerLeft, PADStatus::triggerRight)</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>.
47</p>
48<p>
49After 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 Nintendo&nbsp;GameCube standard controller L and R Buttons <code>(<a href="./KPADStatus.html">KPADStatus</a>::ex_status.gc.ltrigger and <a href="./KPADStatus.html">KPADStatus</a>::ex_status.gc.rtrigger)</code>.
50</p>
51
52<h2>See Also</h2>
53
54<H2>Revision History</H2>
55<P>
5603/01/2006 Initial version. <BR>06/19/2006 Added indication that this function is not supported for UI Tool Version 4.<BR>
57</P>
58
59</body>
60</html>
61