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 18<h2>C Specification</h2> 19 20<dl> 21<dd><pre><code>#include <revolution/wpad.h> 22 23#define WPAD_CHAN0 0 24#define WPAD_CHAN1 1 25#define WPAD_CHAN2 2 26#define WPAD_CHAN3 3 27 28#define WPAD_DEV_CORE 0 29#define WPAD_DEV_FREESTYLE 1 30#define WPAD_DEV_CLASSIC 2 31#define WPAD_DEV_UNKNOWN 255 32#define WPAD_DEV_NOT_FOUND 253 33#define WPAD_DEV_NOT_SUPPORTED 252 34#define WPAD_DEV_FUTURE 251 35 36BOOL WPADAttachDummyExtension( s32 chan, u32 type );</code></pre> 37 </dd> 38</dl> 39 40<h2>Arguments</h2> 41<TABLE border="1"> 42 <TBODY> 43 <TR> 44<TD width="120" bgcolor="#ffffe8"><code><b><i>chan</i></b></code></TD> 45<TD>One of the <code>WPAD_CHAN<i>n</i></code> values.</TD> 46 </TR> 47 <TR> 48<TD width="120" bgcolor="#ffffe8"><CODE><b><i>type</i></b></CODE></TD> 49<TD>One of the <code>WPAD_DEV_*</code>.</TD> 50 </TR> 51 </TBODY> 52</TABLE> 53<h2>Return Values</h2> 54<p> 55Returns TRUE if the device type is changed successfully; otherwise, returns FALSE. 56</p> 57 58<H2>Description</H2> 59<p> 60Changes 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 there is no external extension controller plugged into the Wii Remote. No change can be made if an external extension controller is already plugged into the Wii Remote. 61</p> 62<p> 63<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> 64</p> 65 66<h2>See Also</h2> 67<p> 68<A href="./toc.html" target="contents">WPAD Functions</A><br> <A href="./WPADDetachDummyExtension.html"><CODE>WPADDetachDummyExtension</CODE></A><br> 69</p> 70 71<H2>Revision History</H2> 72<p> 732007/05/02 Made a change such that <code>FALSE</code> is always returned with the release version library.<br> 2007/04/18 Initial version.<br> 74</P> 75 76<hr><p>CONFIDENTIAL</p></body> 77</html>