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 <TITLE>WPAD Demos</TITLE> 7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 8</HEAD> 9<BODY> 10 11<H1>Standard Controller (WPAD) Sample Demos</H1> 12 13<H2>Location</H2> 14<P><CODE>$REVOLUTION_SDK_ROOT/build/demos/wpaddemo</CODE></P> 15 16<H2>Compilation</H2> 17<P>Go to the directory <code>$REVOLUTION_SDK_ROOT/build/demos/wpaddemo</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/wpaddemo/</code>.</P> 18 19<H2>Execution</H2> 20<P>Move to the <code>$REVOLUTION_SDK_ROOT/RVL/bin/demos/wpaddemo/</code> directory and perform the following steps:</P> 21<ul> 22 <li>To simply execute the application, run the <code>ndrun</code> script using the <code>.elf</code> file as the argument.</li> 23 <li>To debug using CodeWarrior, do one of the following.</li> 24<ul> 25<li>Run <code>$CWFOLDER/bin/IDE.exe</code> with the <code>.elf</code> file as an argument.</li> 26<li>Launch <code>$CWFOLDER/bin/IDE.exe</code>, then drag and drop the <code>.elf</code> file.</li> 27<li>If the <code>.elf</code> file is associated with <code>$CWFOLDER/bin/IDE.exe</code>, double-click the <code>.elf</code> file</li> 28</ul> 29 30</ul> 31 32<H2>Description</H2> 33<TABLE class="demo_list" border="1" > 34 <TBODY> 35 <TR> 36 <TH>wpadsample</TH> 37 <TD> 38 This sample executes basic controller processes (connect/disconnect, allow/disallow connection, vibration, memory read/write, hotswapping of external controllers, and so on) and displays controller information for the Wii Remote (buttons, acceleration, pointer, distance from the TV, and so on). 39 40 Without inserting an external extended controller, a process for virtually changing the device type is available only in the debug version. 41 <br><br> 42 <STRONG>Using the Demo:</STRONG><br> 43 Operate using the Nintendo GameCube Controller connected to 1P.<br> 44 <table> 45 <tr> 46 <td>+Control Pad</td><td>Moves the cursor in the operation menu located in the lower right of the screen.</td> 47 </tr> 48 <tr> 49 <td>A Button</td><td>Runs or stops the operation selected in the operation menu.</td> 50 </tr> 51 <tr> 52 <td>B Button</td><td>Sets whether to allow/deny connections for Wii Remotes that have already been registered.</td> 53 </tr> 54 <tr> 55 <td>Z Button</td><td>Starts or stops simple pairing.</td> 56 </tr> 57 </table> 58 <br> 59 Controls Menu:<br> 60 <table> 61 <tr> 62 <td>Rumble</td><td>Periodically vibrates the Wii Remote at the specified channel.</td> 63 </tr> 64 <tr> 65 <td>Info</td><td>Gets information from the specified channel (indicators, remaining battery life, and so on).</td> 66 </tr> 67 <tr> 68 <td>Disconnect</td><td>Disconnects the Wii Remote at the specified channel.</td> 69 </tr> 70 <tr> 71 <td>ACC</td><td>Enables or disables the Motion Sensor at the specified channel.</td> 72 </tr> 73 <tr> 74 <td>DPD</td><td>Starts or stops the Pointer at the specified channel.</td> 75 </tr> 76 <tr> 77 <td>DPD_FULL</td><td>Starts or stops the Pointer at the specified channel, in Full mode.</td> 78 </tr> 79 <tr> 80 <td>ExtGimmick</td><td>Operates or stops any special mechanisms in the external extension controller attached to the Wii Remote at the specified channel.</td> 81 </tr> 82 <tr> 83 <td>Read mem</td><td>Reads data from the memory of the Wii Remote at the specified channel.</td> 84 </tr> 85 <tr> 86 <td>Write mem</td><td>Writes data to the memory of the Wii Remote at the specified channel.</td> 87 </tr> 88 <tr> 89 <td>Dummy Ext</td><td>Simulates the insertion or removal of a device that returns <code>WPAD_DEV_FUTURE</code> at the specified channel.</td> 90 </tr> 91 </table> 92 93 </TD> 94 </TR> 95 <TR> 96 <TH>wpad_axdemo</TH> 97 <TD> 98 Outputs audio data processed by AX from the Wii Remote speaker.<br> 99 <br> 100 <STRONG>Using the Demo:</STRONG><br> 101 <table> 102 <tr> 103 <td>+Control Pad, A Button, B Button, 1 Button, 2 Button</td><td>Plays the sounds assigned to each of these buttons.</td> 104 </tr> 105 <tr> 106 <td>+Button</td><td>Mutes output from the speaker.</td> 107 </tr> 108 <tr> 109 <td>- Button</td><td>Cancels mute.</td> 110 </tr> 111 <tr> 112 <td>HOME</td><td>Stops currently playing sounds.</td> 113 </tr> 114 </table> 115 </TD> 116 </TR> 117 <TR> 118 <TH>wpad_seqdemo</TH> 119 <TD> 120 Uses SEQ to play MIDI data through the Wii Remote speaker.<br> 121 <br> 122 <STRONG>Using the Demo:</STRONG><br> 123 <table> 124 <tr> 125 <td>A Button</td><td>Starts or stops sound playback.</td> 126 </tr> 127 </table> 128 </TD> 129 </TR> 130 <TR> 131 <TH>wpad_spdemo</TH> 132 <TD> 133 Uses SP to play SE (sound effects) from the Wii Remote speaker. 134 <br><br> 135 <B>Using the Demo:</B><br> 136 <table> 137 <tr> 138 <td>A Button</td><td>Plays back the sound.</td> 139 </tr> 140 </table> 141 </TD> 142 </TR> 143 <TR> 144 <TH>memory</TH> 145 <TD> 146 Reads and writes data to the internal memory of the Wii Remote. This demo does not display anything to the TV screen; it only performs serial output. 147 <br><br> 148 <B>Using the Demo:</B><br> 149 <table> 150 <tr> 151 <td>A Button</td><td></td><td>Writes data to the Wii Remote memory. Writes data with a different value for each channel. To confirm that the data was written properly, reads the data back out after writing it.</td> 152 </tr> 153 <tr> 154 <td>B Button</td><td></td><td>Reads data in the Wii Remote memory. After reading, the data that was read is compared to the data used during the writes to each channel, then the name of the application that performed the write and the date and time of the write are displayed.</td> 155 </tr> 156 </table> 157 </TD> 158 </TR> 159 <TR> 160 <TH>sync</TH> 161 <TD> 162 Performs both normal and simple pairing.<br><br> 163 <B>Using the Demo:</B><br> 164 Operate using the Nintendo GameCube Controller connected to 1P.<br> 165 <table> 166 <tr> 167 <td>A Button</td><td>Starts normal pairing.</td> 168 </tr> 169 <tr> 170 <td>B Button</td><td>Deletes all registration information.</td> 171 </tr> 172 <tr> 173 <td>X Button</td><td>Starts simple pairing.</td> 174 </tr> 175 <tr> 176 <td>Y Button</td><td>Stops simple pairing.</td> 177 </tr> 178 <tr> 179 <td>L Button</td><td>Starts normal pairing (high speed version).</td> 180 </tr> 181 <tr> 182 <td>R Button</td><td>Starts simple pairing (high speed version).</td> 183 </tr> 184 </table> 185 </TD> 186 </TR> 187 <TR> 188 <TH>dummy_checker</TH> 189 <TD> 190 Simulates change of the device type of the Wii Remote connected to 1P without actually plugging in an external extension controller. Because only a debug version of this function has been prepared, only this version works. 191 <br><br> 192 <B>Using the Demo:</B><br> 193 Operate using the Nintendo GameCube Controller connected to 1P.<br> 194 <table> 195 <tr> 196 <td>A Button</td><td>Simulates insertion of a device that returns <code>WPAD_DEV_FUTURE</code>.</td> 197 </tr> 198 <tr> 199 <td>B Button</td><td>Simulates device removal.</td> 200 </tr> 201 <tr> 202 <td>X Button</td><td>Simulates insertion of a device that returns <code>WPAD_DEV_NOT_SUPPORTED</code>.</td> 203 </tr> 204 </table> 205 </TD> 206 </TR> 207 </TBODY> 208</TABLE> 209 210<H2>See Also</H2> 211<P class="reference"> 212<A href="../toc.html" target="contents">WPAD Functions</A> 213</P> 214 215<H2>Revision History</H2> 216<P> 2172008/08/28 Revised terminology.<br>2008/04/16 Deleted <CODE>full_mode</CODE>.<br>2007/07/19 Added the description for operating demos.<br>2007/07/11 Combined several demos into <CODE>wpadsample</CODE>.<br>2007/04/18 Added <CODE>dummy_checker</CODE>.<br>2006/09/18 Added <CODE>accept</CODE>.<br>2006/09/06 Added the <CODE>config</CODE>, <CODE>full_mode</CODE>, <CODE>memory</CODE>, <CODE>shutdown</CODE>, and <CODE>sync</CODE> demos.<br>2006/08/07 Added the <CODE>wpad_seqdemo</CODE> and <CODE>wpad_spdemo</CODE> demos.<br>2006/07/19 Added the <CODE>wpad_axdemo</CODE> demo.<br>2006/06/19 Overall revision reflecting support for wireless communication.<br>2006/03/01 Initial version.<br> 218</P> 219 220<hr><p>CONFIDENTIAL</p></body> 221</HTML> 222