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><CODE>$REVOLUTION_SDK_ROOT/build/demos/paddemo</CODE></P>
15<H2>Compilation</H2>
16<P>Navigate to the <CODE>$REVOLUTION_SDK_ROOT/build/demos/paddemo</CODE> directory and enter &quot;<CODE>make</CODE>&quot;. 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 the application, 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>?Run <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 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 class="demo_list" border="1" >
34  <TBODY>
35    <TR>
36<TH><strike>simple</strike></TH>
37<TD><strike>Displays the current status of the Controller inserted in Controller Socket 1.</strike></TD>
38    </TR>
39    <TR>
40<TH>basic</TH>
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<TH>cont</TH>
45<TD>Shows how to use Controller utility functions, such as button auto-repeat and automatic reset.</TD>
46    </TR>
47    <TR>
48<TH>motor</TH>
49<TD>Shows how to adjust rumble motor strength.</TD>
50    </TR>
51    <TR>
52<TH>sampling</TH>
53<TD>Shows how to use the <A href="../PADSetSamplingCallback.html"><CODE>PADSetSamplingCallback</CODE></A> function.</TD>
54    </TR>
55    <TR>
56<TH>clamp2</TH>
57<TD>Shows how to use the clamping functions <A href="../PADClamp2.html"><CODE>PADClamp2</CODE></A>, <A href="../PADClampCircle2.html"><CODE>PADClampCircle2</CODE></A>. and <A href="../PADClampTrigger.html"><CODE>PADClampTrigger</CODE></A>.</TD>
58    </TR>
59  </TBODY>
60</TABLE>
61
62<H2>See Also</H2>
63<P class="reference">
64<A href="../toc.html" target="contents">PAD Functions</A>
65</P>
66
67<H2>Revision History</H2>
68<P>
692007/05/09 Deleted the <CODE>simple</CODE> 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 <CODE>basic</CODE> demo.<BR>2006/09/07 Added <CODE>clamp2</CODE> to the sample demos.<BR>2006/03/01 Initial version.
70</P>
71
72<hr><p>CONFIDENTIAL</p></body>
73</HTML>
74