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="Microsoft FrontPage 5.0">
6<META http-equiv="Content-Style-Type" content="text/css">
7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
8<TITLE>WPADRead</TITLE>
9</HEAD>
10<BODY>
11
12<H1>WPADRead</H1>
13
14<H2>Syntax</H2>
15<dl><dd><pre class="construction">
16#include &lt;revolution/wpad.h&gt;
17
18#define WPAD_CHAN0               0
19#define WPAD_CHAN1               1
20#define WPAD_CHAN2               2
21#define WPAD_CHAN3               3
22
23void WPADRead( s32 chan, void *status );
24</pre></dd></dl>
25
26<H2>Arguments</H2>
27<TABLE class="arguments" border="1" >
28  <TBODY>
29    <TR>
30<TH>chan</TH>
31<TD>One of the <code>WPAD_CHAN<i>n</i></code> values.</TD>
32    </TR>
33    <TR>
34<TH>status</TH>
35<TD>Pointer to the <code><a href="./WPADStatus.html">WPADStatus</a></code> structure. This structure must correspond to the data format specified by the <a href="./WPADSetDataFormat.html"><code>WPADSetDataFormat</code></a> function. If the status of the Wii Remote is valid, the <SPAN class="argument">err</SPAN> member holds <CODE>WPAD_ERR_NONE</CODE>; otherwise it holds another error status.</TD>
36    </TR>
37  </TBODY>
38</TABLE>
39
40<H2>Return Values</H2>
41<P>None.</P>
42
43<H2>Description</H2>
44<P>Obtains the most recent status of the Wii Remote on the specified channel. This can be used together with the <a href="./WPADSetAutoSamplingBuf.html"><CODE>WPADSetAutoSamplingBuf</CODE></a> function. This function can be called when the <a href="./WPADProbe.html"><code>WPADProbe</code></a> function returns anything other than <code>WPAD_ERR_NO_CONTROLLER</code>.</P>
45<p>Prohibition processing takes place in the WPAD library for the +Control Pad on both the Wii Remote and the Classic Controller. If Left and Right are both input at once, the library recognizes it as Left, and if Up and Down are both input at once, the library recognizes it as Up.</p>
46<H2>See Also</H2>
47<p class="reference">
48<A href="./WPADSetAutoSamplingBuf.html">WPADSetAutoSamplingBuf</A>,
49<A href="./WPADProbe.html">WPADProbe</A>,
50<A href="./WPADStatus.html">WPADStatus</A>
51</p>
52
53<H2>Revision History</H2>
54<P>
552008/05/29 Added a description of prohibition processing for the +Control Pad.<br>2008/04/16 Deleted the <CODE>WPADFSStatus</CODE>, <CODE>WPADCLStatus</CODE>, and <CODE>WPADStatusEx</CODE> structures from <B>See Also</B>.<br>2008/03/21 Added an explanation of <code>WPADProbe</code>.<br>2005/10/20 Changed API specs.<br>2005/08/01 Initial version.<br>
56</p>
57
58<hr><p>CONFIDENTIAL</p></body>
59</HTML>