1
2<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3<html>
4
5<head>
6<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
7<META name="GENERATOR" content="Microsoft FrontPage 5.0">
8<META http-equiv="Content-Style-Type" content="text/css">
9<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
10<title>WPADAttachDummyExtension</title>
11</head>
12
13<body>
14
15<h1>WPADAttachDummyExtension</h1>
16
17<h2>Syntax</h2>
18<dl><dd><pre class="construction">
19#include &lt;revolution/wpad.h&gt;
20
21#define WPAD_CHAN0               0
22#define WPAD_CHAN1               1
23#define WPAD_CHAN2               2
24#define WPAD_CHAN3               3
25
26#define WPAD_DEV_CORE            0
27#define WPAD_DEV_FREESTYLE       1
28#define WPAD_DEV_CLASSIC         2
29#define WPAD_DEV_UNKNOWN         255
30#define WPAD_DEV_NOT_FOUND       253
31#define WPAD_DEV_NOT_SUPPORTED   252
32#define WPAD_DEV_FUTURE          251
33
34BOOL WPADAttachDummyExtension( s32 chan, u32 type );
35</pre></dd></dl>
36
37<h2>Arguments</h2>
38<TABLE class="arguments" border="1" >
39  <TBODY>
40    <TR>
41<TH>chan</TH>
42<TD>One of the <code>WPAD_CHAN<i>n</i></code> values.</TD>
43    </TR>
44    <TR>
45<TH>type</TH>
46<TD>One of the <code>WPAD_DEV_*</code>.</TD>
47    </TR>
48  </TBODY>
49</TABLE>
50
51<h2>Return Values</h2>
52<p>
53Returns <code>TRUE</code> if the device type was successfully changed and <code>FALSE</code> otherwise.
54</p>
55
56<H2>Description</H2>
57<p>
58Changes the Wii Remote device type for the specified channel without actually plugging in an external extension controller to the Wii Remote assigned to the specified channel. Call this function when nothing is inserted in the Wii Remote. No change can be made if an external extension controller is already plugged into the Wii Remote.
59</p>
60<p>
61<font color="red">Because this function is used for debugging applications, it works only with the debug version library. It does not work with the release version library, where <code>FALSE</code> is always the return value.</font>
62</p>
63
64<h2>See Also</h2>
65<p class="reference">
66<A href="./WPADDetachDummyExtension.html">WPADDetachDummyExtension</A>
67</p>
68
69<H2>Revision History</H2>
70<p>
712007/05/02 Changed so that <code>FALSE</code> is always returned with the release version.<br>2007/04/18 Initial version.<br>
72</P>
73
74<hr><p>CONFIDENTIAL</p></body>
75</html>