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 name="GENERATOR" content="IBM HomePage Builder 2000 V4.0.6  for Windows">
6<META http-equiv="Content-Style-Type" content="text/css">
7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
8<TITLE>PAD Demos</TITLE>
9</HEAD>
10<BODY>
11<H1>Nintendo&nbsp;GameCube Controller (PAD) Sample Demos</H1>
12
13<H2>Location</H2>
14<P><FONT face="Courier New">$REVOLUTION_SDK_ROOT/build/demos/paddemo</FONT></P>
15<H2>Compilation</H2>
16<P>Go to the directory <code>$REVOLUTION_SDK_ROOT/build/demos/paddemo</code> and type <code>make</code>. An executable (<code>.elf</code>) file will be generated under the path <code>$REVOLUTION_SDK_ROOT/RVL/bin/demos/paddemo/</code>.</P>
17<H2>Execution</H2>
18<P>Navigate to the <code>$REVOLUTION_SDK_ROOT/RVL/bin/demos/paddemo/</code> directory and perform the following steps:</P>
19<ul>
20<li>To simply execute a program, run the <code>ndrun</code> script using the <code>.elf</code> file as the argument.</li>
21<li>To debug using CodeWarrior, do one of the following:</li>
22<ul>
23<li>Execute <code>$CWFOLDER/bin/IDE.exe</code> with the <code>.elf</code> file as an argument.</li>
24<li>Launch <code>$CWFOLDER/bin/IDE.exe</code>, then drag and drop the <code>.elf</code> file.</li>
25<li>If the <code>.elf</code> file is associated with <code>$CWFOLDER/bin/IDE.exe</code>, double-click the <code>.elf</code> file.</li>
26</ul>
27
28</ul>
29
30<H2>Description</H2>
31<p><font color="ff0000"><b>Note:</b> These sample demos demonstrate the use of the Nintendo&nbsp;GameCube Controller library (the PAD library). To verify the operation of these demos, you must insert a Nintendo&nbsp;GameCube Controller into the Controller Socket.</font></p>
32
33<TABLE border="1" cellpadding="3" cellspacing="0.1">
34  <TBODY>
35    <TR>
36<TD><EM><strike><STRONG><CODE>simple</CODE></STRONG></strike></EM></TD>
37<TD><strike>Displays the current status of the Controller inserted in Controller Socket 1.</strike></TD>
38    </TR>
39    <TR>
40<TD><EM><STRONG><CODE>basic</CODE></STRONG></EM></TD>
41<TD>Displays the current status of all Nintendo&nbsp;GameCube Controllers inserted in the Controller Sockets. The program detects and recovers from error conditions.</TD>
42    </TR>
43    <TR>
44<TD><EM><STRONG><CODE>cont</CODE></STRONG></EM></TD>
45<TD>Shows how to use Controller utility functions, such as button auto-repeat and automatic reset.</TD>
46    </TR>
47    <TR>
48<TD><EM><STRONG><CODE>motor</CODE></STRONG></EM></TD>
49<TD>Shows how to adjust rumble motor strength.</TD>
50    </TR>
51    <TR>
52<TD><EM><STRONG><CODE>sampling</CODE></STRONG></EM></TD>
53<TD>Shows how to use the <CODE><A href="../PADSetSamplingCallback.html">PADSetSamplingCallback</A></CODE> function.</TD>
54    </TR>
55    <TR>
56<TD><EM><STRONG><CODE>clamp2</CODE></STRONG></EM></TD>
57<TD>Shows how to use the clamping functions <CODE><A href="../PADClamp2.html">PADClamp2</A></CODE>, <CODE><A href="../PADClampCircle2.html">PADClampCircle2</A></CODE>, and <CODE><A href="../PADClampTrigger.html">PADClampTrigger</A></CODE>.</TD>
58    </TR>
59  </TBODY>
60</TABLE>
61<H2>See Also</H2>
62<P><A href="../toc.html"><CODE>PAD Functions</CODE></A></P>
63<H2>Revision History</H2>
64<P>
652007/05/09 Deleted the simple demo from the sample demos. The demo was deleted because the code did not conform to the guidelines and because the relevant content is already included in the basic demo.<BR>2006/09/07 Added <B><I>clamp2</I></B> to the sample demo .<BR>2006/03/01 Initial version.
66</P>
67<hr><p>CONFIDENTIAL</p></body>
68</HTML>
69