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</title> 8</head> 9 10<body> 11 12 13 14<h1>KPADSetGCStickClamp</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 <revolution/kpad.h></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 GameCube standard controller. This function indicates that Nintendo GameCube standard 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 <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 GameCube standard controller Control Stick data <code>(<a href="./KPADStatus.html">KPADStatus</a>::ex_status.gc.mstick)</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