1<?xml version="1.0" encoding="UTF-8"?> 2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 3<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 4<head> 5<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 6<meta http-equiv="Content-Style-Type" content="text/css" /> 7<link rel="stylesheet" href="../../css/manpage.css" type="text/css" /> 8</head> 9<body> 10 <h1><CODE>hid</CODE> - <CODE>AppRecommendedFlow</CODE> Demo</h1> 11 <h2>Description</h2> 12 <div class="section"> 13 <p> 14This demo shows the recommended sequences for using the Circle Pad Pro when developing applications that use the HID library's ExtraPad.<br />For details, see the section titled <I>Sequences for Using the Circle Pad Pro</I> in the document titled <I>CTR Programming Manual: System</I>. 15 </p> 16 </div> 17 18 <h2>Required Environment</h2> 19 <div class="section"> 20 <ul> 21 <li>A CTR Card containing backup memory must be inserted on startup. If not inserted, the error <CODE>C8804497</CODE> occurs at startup.</li> 22 <li>If you are using a PARTNER-CTR Debugger, you will need a Circle Pad Pro for Debugger and a TR software development card.</li> 23 <li>When using a development system, you will need a Circle Pad Pro and a smaller CTR software development card.</li> 24 </ul> 25 </div> 26 27 <h2>How to Use</h2> 28 <div class="section"> 29 Common to All Scenes 30 <table> 31 <thead> 32 <tr> 33 <th>Input</th> 34 <th>Operation</th> 35 </tr> 36 </thead> 37 <tr> 38 <td>Close System</td> 39 <td>The system will enter Sleep Mode. Opening the system resumes the previously displayed screen.</td> 40 </tr> 41 </table> 42 <br> 43 44 Save Data Selection Scene 45 <table> 46 <thead> 47 <tr> 48 <th>Input</th> 49 <th>Operation</th> 50 </tr> 51 </thead> 52 <tr> 53 <td>Touch Panel</td> 54 <td>Selects save data.</td> 55 </tr> 56 </table> 57 <br> 58 59 Save Data Operations Scene 60 <table> 61 <thead> 62 <tr> 63 <th>Input</th> 64 <th>Operation</th> 65 </tr> 66 </thead> 67 <tr> 68 <td>Touch Panel</td> 69<td>・ If the selected save data is new data, select whether to use the Circle Pad Pro (Yes/No).<br />・ Delete the save data.<br />・ Load the save data.</td> 70 </tr> 71 </table> 72 <br> 73 74 Circle Pad Pro Detection Confirmation Scene 75 <table> 76 <thead> 77 <tr> 78 <th>Input</th> 79 <th>Operation</th> 80 </tr> 81 </thead> 82 <tr> 83 <td>Touch Panel</td> 84 <td>Respond to messages displayed on the screen (Yes, No, OK, Cancel).</td> 85 </tr> 86 </table> 87 <br> 88 89 Circle Pad Pro Use Scene 90 <table> 91 <thead> 92 <tr> 93 <th>Input</th> 94 <th>Operation</th> 95 </tr> 96 </thead> 97 <tr> 98 <td>START Button</td> 99 <td>Opens the <B>Options</B> menu.</td> 100 </tr> 101 <tr> 102 <td>Circle Pad</td> 103 <td>Moves a pattern.</td> 104 </tr> 105 <tr> 106 <td>+Control Pad Left/Right</td> 107 <td>Rotates a line.</td> 108 </tr> 109 <tr> 110 <td>Circle Pad (R)</td> 111 <td>Rotates a line.</td> 112 </tr> 113 </table> 114 <br> 115 116 Options Menu Scene 117 <table> 118 <thead> 119 <tr> 120 <th>Input</th> 121 <th>Operation</th> 122 </tr> 123 </thead> 124 <tr> 125 <td>START Button</td> 126 <td>Opens the <B>Options</B> menu.</td> 127 </tr> 128 <tr> 129 <td>Touch Panel</td> 130<td>The following operations are possible.<br />・ Turning the Circle Pad Pro on and off.<br />・ Checking the Circle Pad Pro connection.<br />・ Starting the Circle Pad Pro calibration applet.<br />・ Saving the settings.<br />・ Returning to the scene using the Circle Pad Pro.<br />・ Transitioning to the save data selection scene.<br />・ Responding to displayed messages (Yes, No, OK, Cancel).</td> 131 </tr> 132 </table> 133 </div> 134 135 <h2>Notes</h2> 136 137 <div class="section"> 138 <ul> 139 <li>Pay attention to the remaining battery power in the Circle Pad Pro. If the remaining battery power is low or 0, applications will be unable to connect to the Circle Pad Pro.</li> 140 <li>If you are using the Circle Pad Pro for DEBUGGER, you must connect it to the PARTNER-CTR Debugger before you turn the debugger on.</li> 141 <li>The Circle Pad Pro for Debugger has a switch that emulates the retail Circle Pad Pro's remaining battery power. Applications cannot connect to the Circle Pad Pro when this switch is set to a value indicating that the remaining battery power is low or 0.</li> 142 <li>The Circle Pad Pro obstructs the CTR Game Card slot, so you cannot use normal CTR software development cards. When using a development system, you must therefore use a smaller card the same size as a retail Game Card.</li> 143 </ul> 144 </div> 145 146 <h2>Execution Procedure</h2> 147 <div class="section"> 148 <p> 149 <h4>Scene Composition</h4> 150 <p> 151 This demo is broadly composed of the following five scenes. 152 <ul> 153 <li>Save Data Selection Scene</li> 154 <li>Save Data Operations Scene</li> 155 <li>Circle Pad Pro Detection Confirmation Scene</li> 156 <li>Circle Pad Pro Use Scene</li> 157 <li>Options Menu Scene</li> 158 </ul> 159 The figure below shows transitions between the composed scenes. 160 <p> 161 <img src="Fig/scene_chart_landscape.gif" /> 162 </p> 163 164 <p>The state of the Circle Pad Pro detection thread and any sleep-related log messages are displayed in debugger output for all scenes.</p> 165 <pre class="code"> 166----- Start AppRecommendedFlow ----- 167[Start] Extra pad detection...... 168[Detected] Extra Pad detected! 169[Stop] Extra pad detection. 170<< Sleep >> 171<< Awake >> 172[Start] Extra pad detection.. 173[Detected] Extra Pad detected! 174[Stop] Extra pad detection.</pre> 175 </p> 176 </p> 177 <br> 178 179 <p> 180 <h4>Save Data Selection Scene</h4> 181 The following screens are displayed while the application is running. 182 <p> 183 <img src="Fig/select_save_data_1.bmp" /> 184 </p> 185This shows four save data slots, with each labeled slot showing the total play time for that save data. New data is displayed as "New data."<br />Selecting a save data slot on the touch panel transitions to the save data operations scene. 186 </p> 187 <br> 188 189 <p> 190 <h4>Save Data Operations Scene</h4> 191 The application displays the following screen if the selected data slot is for new data. 192 <p> 193 <img src="Fig/operate_save_data_1.bmp" /> 194 </p> 195This message asks the user to confirm use of the Circle Pad Pro, so that the Circle Pad Pro on/off setting can be added to the save data.<br /><br /> The application displays the following screen for data slots that are not for new data.<br /> 196 <p> 197 <img src="Fig/operate_save_data_2.bmp" /> 198 </p> 199This screen shows the save data name, total play time, and whether the Circle Pad Pro is enabled.<br />Select <B>Delete</B> on the upper right to delete this save data slot.<br />Select the <B>Back</B> button on the lower left to go back to the save data selection scene.<br />Touch the <B>Load</B> button on the lower right to go to the Circle Pad Pro detection scene. 200 </p> 201 <br> 202 203 <p> 204<h4>Circle Pad Pro Detection Confirmation Scene</h4> 205Processing differs depending on the conditions during the scene transition.<br />If the Circle Pad Pro is disabled but detected, the user is asked whether to enable it. Touching <B>Yes</B> then displays a message informing the user that the setting was changed. 206 <p> 207 <img src="Fig/confirm_detection_1.bmp" /> <img src="Fig/confirm_detection_2.bmp" /> 208 </p> 209 210 </p> 211<br /> If the Circle Pad Pro is enabled but not detected, the application attempts to detect it for 15 seconds and then displays its results. <br />Select <B>Cancel</B> to skip detection. 212 <p> 213 <img src="Fig/confirm_detection_3.bmp" /> <img src="Fig/confirm_detection_4.bmp" /> <img src="Fig/confirm_detection_5.bmp" /> 214 </p> 215<br />When the application detects the presence of the Circle Pad Pro, it checks for remaining battery power. The application shows the following if the battery is low. 216 <p> 217 <img src="Fig/confirm_detection_6.bmp" /> 218 </p> 219<br />The application displays the following message if you disconnect the Circle Pad Pro after it was detected but before the battery level is confirmed. 220 <p> 221 <img src="Fig/confirm_detection_7.bmp" /> 222 </p> 223 </p> 224 <br> 225 226 <p> 227 <h4>Circle Pad Pro Use Scene</h4> 228 The following shows a scene that supports use of the Circle Pad Pro. 229 <p> 230 <img src="Fig/use_extra_pad_1.bmp" /> 231 </p> 232The upper screen shows the following information.<br />・ Information about the selected save data.<br />・ State of the connection to the Circle Pad Pro and its battery level.<br />・ Information about flags used in application processing.<br /> <br />The lower screen shows an object that corresponds to input from the system and the Circle Pad Pro.<br />You can use the system's built-in Circle Pad to move the object.<br />Use Left and Right on the +Control Pad and the Circle Pad (R) of the Circle Pad Pro to rotate the line.<br /><br /> Any connection to or disconnection from the Circle Pad Pro, while moving the object, displays a message at the top of the lower screen.<br /> The application displays a message about the battery level, if this is the first connection since application startup and the battery level is low.<br /> You can still use the controls to move the object while this message is showing.<br /> <br />Press START to go to the <B>Options</B> menu. 233 <p> 234 <img src="Fig/use_extra_pad_2.bmp" /> <img src="Fig/use_extra_pad_3.bmp" /> <img src="Fig/use_extra_pad_4.bmp" /> 235 </p> 236 </p> 237 <br> 238 239 <p> 240<h4>Options Menu Scene</h4> 241The application shows the following when transitioning to the <B>Options</B> menu scene. You can check the Circle Pad Pro connection, calibrate the Circle Pad (R), and save the current settings.<br />Touch the <B>Return to play</B> button to return to the Circle Pad Pro use scene. Select the <B>Select save data</B> button to go back to the save data selection scene.<br /> 242 <p> 243 <img src="Fig/option_menu_1.bmp" /> 244 </p> 245With the Circle Pad Pro in the detected state, select the <B>Off</B> button to disable the Circle Pad Pro and display a message stating that it has been disconnected.<br /> 246 <p> 247 <img src="Fig/option_menu_2.bmp" /> 248 </p> 249With the Circle Pad Pro in the disabled (off) state, select the <B>On</B> button to display a message confirming that you want to connect the Circle Pad Pro.<br />Select <B>Yes</B> to confirm the connection.<br /> 250 <p> 251 <img src="Fig/option_menu_3.bmp" /> <img src="Fig/option_menu_4.bmp" /> 252 </p> 253The following figures show the results of confirming the connection when enabling the Circle Pad Pro, and selecting <B>Connect</B> to confirm the connection.<br /> 254 <p> 255 <img src="Fig/option_menu_5.bmp" /> <img src="Fig/option_menu_6.bmp" /> 256 </p> 257 258 <br> <br> 259 </p> 260 </div> 261 262 <h2>Revision History</h2> 263 264 <div class="section"> 265 <dl class="history"> 266 <dt>2012/04/19</dt> 267<dd>Revised the reference to the programming manual.</dd> 268 <dt>2011/12/08</dt> 269 <dd>Added operation of closing the system.</dd> 270 <dd>Revised description of displaying the <B>Options</B> menu scene.</dd> 271 <dd>Changed terms for on / off setting and updated screenshots.</dd> 272 <dt>2011/11/28</dt> 273 <dd>Initial version.</dd> 274 </dl> 275 </div> 276 277 278<hr><p>CONFIDENTIAL</p></body> 279</html>