1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <meta http-equiv="Content-Style-Type" content="text/css" />
6    <link rel="stylesheet" href="../../../../css/manpage.css" type="text/css" />
7    <style type="text/css"><!--
8      span.static_style
9      {
10        font-size			: 8pt;
11        color				: white;
12        font-weight			: bold;
13        background			: #44f;
14        border-left			: solid 1px #aaf;
15        border-top			: solid 1px #aaf;
16        border-right		: solid 1px #00c;
17        border-bottom		: solid 1px #00c;
18        padding-left		: 2px;
19        padding-right		: 2px;
20      }
21
22      span.virtual_style
23      {
24        font-size			 : 8pt;
25        color				 : white;
26        font-weight			: bold;
27        background			: #0a0;
28        border-left			: solid 1px #0f0;
29        border-top			: solid 1px #0f0;
30        border-right		: solid 1px #060;
31        border-bottom		: solid 1px #060;
32        padding-left		: 2px;
33        padding-right		: 2px;
34      }
35
36      span.protected_style
37      {
38        font-size			 : 8pt;
39        color				 : white;
40        font-weight			: bold;
41        background			: #444;
42        border-left			: solid 1px #ccc;
43        border-top			: solid 1px #ccc;
44        border-right		: solid 1px #222;
45        border-bottom		: solid 1px #222;
46        padding-left		: 2px;
47        padding-right		: 2px;
48      }
49        --></style>
50<title>nn::hid::CTR::ExtraPadReader</title>
51  </head>
52  <body>
53<h1><CODE><a href="../../../../nn/Overview.html">nn</a>::<a href="../../../../nn/hid/Overview.html">hid</a>::<a href="../../../../nn/hid/CTR/Overview.html">CTR</a>::ExtraPadReader</CODE> Class</h1>
54<h2>Syntax</h2>
55    <div class="section">
56      <pre class="definition">class ExtraPadReader</pre>
57    </div>
58<h2>Description</h2>
59    <div class="section">
60<p>Class for reading sampling data from the Nintendo 3DS Circle Pad Pro and the CTR system gamepad.</p><p>Call the <a href="../../../../nn/hid/CTR/ExtraPad/Initialize.html"><CODE>ExtraPad::Initialize</CODE></a> function before using this class. The <a href="../../../../nn/hid/CTR/ExtraPad/StartSampling.html"><CODE>ExtraPad::StartSampling</CODE></a> and <a href="../../../../nn/hid/CTR/ExtraPad/StopSampling.html"><CODE>ExtraPad::StopSampling</CODE></a> functions control sampling for the Circle Pad Pro. While sampling is in progress for the Circle Pad Pro, both the CTR system's gamepad information and the Circle Pad Pro's input information are updated at the intervals set by the <a href="../../../../nn/hid/CTR/ExtraPad/StartSampling.html"><CODE>ExtraPad::StartSampling</CODE></a> function. Note that you cannot get the CTR system gamepad information from the <a href="../../../../nn/hid/CTR/PadReader/Overview.html"><CODE>PadReader</CODE></a> function while a connection to the Circle Pad Pro is maintained.</p><p>When the Circle Pad Pro is not connected, only the CTR system gamepad information is updated. (It is updated every 4 milliseconds, which is the gamepad sampling period.) <br /><B>Note:</B> Both the information obtained by sampling and the sampling period differ depending on the state of the Nintendo 3DS Circle Pad Pro.</p><!-- write here --></div>
61    <a name="enum" id="enum">
62<h2>Enumerated Types</h2>
63      <div class="section">
64        <table class="members">
65          <tr>
66            <td width="100"> </td>
67            <th>
68<a href="../../../../nn/hid/CTR/ExtraPadReader/StickClampMode.html"><CODE>StickClampMode</CODE></a>
69            </th>
70<td>The clamp mode of the Circle Pad and the Right Circle Pad. This is set by the <a href="../../../../nn/hid/CTR/ExtraPadReader/SetStickClampMode.html"><CODE>SetStickClampMode</CODE></a> and <a href="../../../../nn/hid/CTR/ExtraPadReader/SetExtraStickClampMode.html"><CODE>SetExtraStickClampMode</CODE></a> functions. This has the same meaning as <a href="../../../../nn/hid/CTR/PadReader/StickClampMode.html"><CODE>PadReader::StickClampMode</CODE></a>. For more information, see <a href="../../../../nn/hid/CTR/PadReader/StickClampMode.html"><CODE>PadReader::StickClampMode</CODE></a>.</td>
71          </tr> </table>
72      </div>
73    </a> <a name="function" id="function">
74<h2>Member Functions</h2>
75      <div class="section">
76        <table class="members">
77          <tr>
78<th class="category" colspan="3">Constructors/Destructors</th>
79          </tr>
80          <tr>
81            <td width="100">  </td>
82            <th>
83<a href="../../../../nn/hid/CTR/ExtraPadReader/ExtraPadReader.html"><CODE>ExtraPadReader</CODE></a>
84            </th>
85<td>Constructor.</td>
86          </tr>
87          <tr>
88<td width="100"> <span class="virtual_style" title="virtual">V</span>
89            </td>
90            <th>
91<a href="../../../../nn/hid/CTR/ExtraPadReader/~ExtraPadReader.html"><CODE>~ExtraPadReader</CODE></a>
92            </th>
93<td>Destructor.</td>
94          </tr>
95          <tr>
96<th class="category" colspan="3">Reading Sampling Data</th>
97          </tr>
98          <tr>
99            <td width="100">  </td>
100            <th>
101<a href="../../../../nn/hid/CTR/ExtraPadReader/Read.html"><CODE>Read</CODE></a>
102            </th>
103<td>Reads sampling data from the Nintendo 3DS Circle Pad Pro and the CTR system gamepad in reverse chronological order.</td>
104          </tr>
105          <tr>
106            <td width="100">  </td>
107            <th>
108<a href="../../../../nn/hid/CTR/ExtraPadReader/ReadLatest.html"><CODE>ReadLatest</CODE></a>
109            </th>
110<td>Reads the most recent sampling data from the Nintendo 3DS Circle Pad Pro and the CTR system gamepad. Unlike <a href="../../../../nn/hid/CTR/ExtraPadReader/Read.html"><CODE>Read</CODE></a>, this function allows you to read the same sampling data.</td>
111          </tr>
112          <tr>
113<th class="category" colspan="3">Clamping the CTR System Circle Pad</th>
114          </tr>
115          <tr>
116            <td width="100">  </td>
117            <th>
118<a href="../../../../nn/hid/CTR/ExtraPadReader/SetStickClamp.html"><CODE>SetStickClamp</CODE></a>
119            </th>
120<td>Sets the clamp values for the CTR system Circle Pad.</td>
121          </tr>
122          <tr>
123            <td width="100">  </td>
124            <th>
125<a href="../../../../nn/hid/CTR/ExtraPadReader/GetStickClamp.html"><CODE>GetStickClamp</CODE></a>
126            </th>
127<td>Gets the clamp values of the current clamp mode for the CTR system Circle Pad.</td>
128          </tr>
129          <tr>
130            <td width="100">  </td>
131            <th>
132<a href="../../../../nn/hid/CTR/ExtraPadReader/GetStickClampMode.html"><CODE>GetStickClampMode</CODE></a>
133            </th>
134<td>Gets the clamp mode of the CTR system Circle Pad.</td>
135          </tr>
136          <tr>
137            <td width="100">  </td>
138            <th>
139<a href="../../../../nn/hid/CTR/ExtraPadReader/SetStickClampMode.html"><CODE>SetStickClampMode</CODE></a>
140            </th>
141<td>Sets the clamp mode of the CTR system Circle Pad.</td>
142          </tr>
143          <tr>
144            <td width="100">  </td>
145            <th>
146<a href="../../../../nn/hid/CTR/ExtraPadReader/NormalizeStick.html"><CODE>NormalizeStick</CODE></a>
147            </th>
148<td>Normalizes and returns the CTR system Circle Pad values obtained by the <a href="../../../../nn/hid/CTR/ExtraPadReader/Read.html"><CODE>Read</CODE></a> and <a href="../../../../nn/hid/CTR/ExtraPadReader/ReadLatest.html"><CODE>ReadLatest</CODE></a> functions to floating-point values between <CODE>-1.0</CODE> and <CODE>1.0</CODE>.</td>
149          </tr>
150          <tr>
151            <td width="100">  </td>
152            <th>
153<a href="../../../../nn/hid/CTR/ExtraPadReader/NormalizeStickWithScale.html"><CODE>NormalizeStickWithScale</CODE></a>
154            </th>
155<td>Normalizes and returns the CTR system Circle Pad values obtained by the <a href="../../../../nn/hid/CTR/ExtraPadReader/Read.html"><CODE>Read</CODE></a> and <a href="../../../../nn/hid/CTR/ExtraPadReader/ReadLatest.html"><CODE>ReadLatest</CODE></a> functions to floating-point values between <CODE>-1.0</CODE> and <CODE>1.0</CODE>. Includes a sensitivity correction feature.</td>
156          </tr>
157          <tr>
158            <td width="100">  </td>
159            <th>
160<a href="../../../../nn/hid/CTR/ExtraPadReader/SetNormalizeStickScaleSettings.html"><CODE>SetNormalizeStickScaleSettings</CODE></a>
161            </th>
162<td>Configures settings for the <a href="../../../../nn/hid/CTR/ExtraPadReader/NormalizeStickWithScale.html"><CODE>NormalizeStickWithScale</CODE></a> function.</td>
163          </tr>
164          <tr>
165            <td width="100">  </td>
166            <th>
167<a href="../../../../nn/hid/CTR/ExtraPadReader/GetNormalizeStickScaleSettings.html"><CODE>GetNormalizeStickScaleSettings</CODE></a>
168            </th>
169<td>Gets the <a href="../../../../nn/hid/CTR/ExtraPadReader/NormalizeStickWithScale.html"><CODE>NormalizeStickWithScale</CODE></a> function settings.</td>
170          </tr>
171          <tr>
172<th class="category" colspan="3">Clamping the Right Circle Pad</th>
173          </tr>
174          <tr>
175            <td width="100">  </td>
176            <th>
177<a href="../../../../nn/hid/CTR/ExtraPadReader/SetExtraStickClamp.html"><CODE>SetExtraStickClamp</CODE></a>
178            </th>
179<td>Sets the clamp values for the Right Circle Pad.</td>
180          </tr>
181          <tr>
182            <td width="100">  </td>
183            <th>
184<a href="../../../../nn/hid/CTR/ExtraPadReader/GetExtraStickClamp.html"><CODE>GetExtraStickClamp</CODE></a>
185            </th>
186<td>Gets the clamp values of the current clamp mode for the Right Circle Pad.</td>
187          </tr>
188          <tr>
189            <td width="100">  </td>
190            <th>
191<a href="../../../../nn/hid/CTR/ExtraPadReader/GetExtraStickClampMode.html"><CODE>GetExtraStickClampMode</CODE></a>
192            </th>
193<td>Gets the clamp mode for the Right Circle Pad.</td>
194          </tr>
195          <tr>
196            <td width="100">  </td>
197            <th>
198<a href="../../../../nn/hid/CTR/ExtraPadReader/SetExtraStickClampMode.html"><CODE>SetExtraStickClampMode</CODE></a>
199            </th>
200<td>Sets the clamp mode for the Right Circle Pad.</td>
201          </tr>
202          <tr>
203            <td width="100">  </td>
204            <th>
205<a href="../../../../nn/hid/CTR/ExtraPadReader/NormalizeExtraStick.html"><CODE>NormalizeExtraStick</CODE></a>
206            </th>
207<td>Normalizes and returns the Right Circle Pad values obtained by the <a href="../../../../nn/hid/CTR/ExtraPadReader/Read.html"><CODE>Read</CODE></a> and <a href="../../../../nn/hid/CTR/ExtraPadReader/ReadLatest.html"><CODE>ReadLatest</CODE></a> functions to floating-point values between <CODE>-1.0</CODE> and <CODE>1.0</CODE>.</td>
208          </tr>
209          <tr>
210            <td width="100">  </td>
211            <th>
212<a href="../../../../nn/hid/CTR/ExtraPadReader/NormalizeExtraStickWithScale.html"><CODE>NormalizeExtraStickWithScale</CODE></a>
213            </th>
214<td>Normalizes and returns the Right Circle Pad values obtained by the <a href="../../../../nn/hid/CTR/ExtraPadReader/Read.html"><CODE>Read</CODE></a> and <a href="../../../../nn/hid/CTR/ExtraPadReader/ReadLatest.html"><CODE>ReadLatest</CODE></a> functions to floating-point values between <CODE>-1.0</CODE> and <CODE>1.0</CODE>. Includes a sensitivity correction feature.</td>
215          </tr>
216          <tr>
217            <td width="100">  </td>
218            <th>
219<a href="../../../../nn/hid/CTR/ExtraPadReader/SetNormalizeExtraStickScaleSettings.html"><CODE>SetNormalizeExtraStickScaleSettings</CODE></a>
220            </th>
221<td>Configures settings for the <a href="../../../../nn/hid/CTR/ExtraPadReader/NormalizeExtraStickWithScale.html"><CODE>NormalizeExtraStickWithScale</CODE></a> function.</td>
222          </tr>
223          <tr>
224            <td width="100">  </td>
225            <th>
226<a href="../../../../nn/hid/CTR/ExtraPadReader/GetNormalizeExtraStickScaleSettings.html"><CODE>GetNormalizeExtraStickScaleSettings</CODE></a>
227            </th>
228<td>Gets the <a href="../../../../nn/hid/CTR/ExtraPadReader/NormalizeExtraStickWithScale.html"><CODE>NormalizeExtraStickWithScale</CODE></a> function settings.</td>
229          </tr> </table>
230      </div>
231    </a>
232<h2>Revision History</h2>
233    <div class="section">
234      <dl class="history">
235        <dt>2011/10/06</dt>
236<dd>Initial version.<br />
237        </dd>
238      </dl>
239    </div>
240  <hr><p>CONFIDENTIAL</p></body>
241</html>