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>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 file (<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 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>Execute <code>$CWFOLDER/bin/IDE.exe</code> and 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>Warning:</b> These sample demos demonstrate use of the GameCube Controller library (the PAD library). To verify the operation of these demos, you must insert a GameCube Controller into the Controller Port.</font></p>
32
33<TABLE border="1" cellpadding="3" cellspacing="0.1">
34  <TBODY>
35    <TR>
36<TD><EM><STRONG><CODE>simple</CODE></STRONG></EM></TD>
37      <TD>Displays the current status of the Controller inserted in controller port 1.</TD>
38    </TR>
39    <TR>
40<TD><EM><STRONG><CODE>basic</CODE></STRONG></EM></TD>
41      <TD>Displays the current status of all Controllers inserted in the controller ports. 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>Indicates how to use controller utility functions, such as button auto-repeat or automatic reset.</TD>
46    </TR>
47    <TR>
48<TD><EM><STRONG><CODE>motor</CODE></STRONG></EM></TD>
49<TD>Indicates how to adjust rumble motor strength.</TD>
50    </TR>
51    <TR>
52<TD><EM><STRONG><CODE>sampling</CODE></STRONG></EM></TD>
53<TD>Indicates the use of the <CODE><A href="../PADSetSamplingCallback.html">PADSetSamplingCallback</A></CODE> function.</TD>
54    </TR>
55  </TBODY>
56</TABLE>
57<H2>See Also</H2>
58<P><A href="../toc.html"><CODE>PAD APIs</CODE></A></P>
59<H2>Revision History</H2>
60<P>03/01/2006 Initial version.</P>
61</BODY>
62</HTML>
63