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<h1>KPADSetGCStickClamp</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 <revolution/kpadOld.h> 18 19void KPADSetGCStickClamp ( 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 use on Control Stick data of the Nintendo GameCube controller. This function indicates that Nintendo GameCube Control Stick data will be clamped to 0.0f if the absolute value of (<code>PADStatus::stickX, PADStatus::stickY</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 will be stored for Nintendo 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. 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