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 (KPADOld)</title> 8</head> 9 10<body> 11 12<h1>KPADSetGCTriggerClamp</h1> 13<font color="ff0000">This function is not supported in the KPAD library that corresponds to UI Tool Version 4.</font> 14 15<h2>Syntax</h2> 16<dl><dd><pre class="construction"> 17#include <revolution/kpadOld.h> 18 19void KPADSetGCTriggerClamp ( u8 min, u8 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 L and R Buttons of the Nintendo GameCube Controller. This function indicates that the L and R Buttons of the Nintendo GameCube Controller will be clamped to 0.0f if the absolute value of <code>PADStatus::triggerLeft, PADStatus::triggerRight</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, the clamped values read using the <a href="./KPADRead.html"><code>KPADRead</code></a> function will be stored for the L and R Buttons of the Nintendo GameCube Controller (<code><a href="./KPADStatus.html">KPADStatus</a>::ex_status.gc.ltrigger, <a href="./KPADStatus.html">KPADStatus</a>::ex_status.gc.rtrigger</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